Commit 7862fddc authored by Thomas Frion's avatar Thomas Frion

Update README.md

parent c1c6523f
......@@ -17,11 +17,9 @@ This application, although the initiative of the Grenoble PGHM, should have a na
> In this repo, the master branch contains the **lastest stable** version of the code. The real lastest version of the code (but **not necessarily stable**) is in the dev branch.
## Installation
### Requirements
## Requirements
#### Back-end
### Back-end
* PosgreSQL
* Postgis
......@@ -29,83 +27,24 @@ This application, although the initiative of the Grenoble PGHM, should have a na
* Pip
* Virtualenv
#### Front-end
### Front-end
* NodeJs
* Angular/Cli
> To install Angular Cli, type this command `npm install -g @angular/cli`
### Installation (Back-end)
#### 1. Project init
```bash
$ git clone git@gricad-gitlab.univ-grenoble-alpes.fr:Projets-INFO4/19-20/8/app-pghm.git
$ cd app-pghm/choucas
$ source bin/activate
$ cd choucas
$ pip install -r requirements.txt
```
If is necessay, edit the setting file (`choucas/settings.py`) for database connection.
#### 2. Database creation
```bash
$ python manage.py makemigrations
$ python manage.py migrate
```
Now you have to create a super user:
```bash
$ python manage.py createsuperuser
```
#### 3. Load data (optional)
This part allows you to load test data or data to initialize the database.
```bash
$ python manage.py loaddata pghm/fixtures/xxxx.json
```
#### 4. Run server
```bash
$ python manage.py runserver
```
### Installation (Front-end)
#### 1. Setup
```bash
$ git clone git@gricad-gitlab.univ-grenoble-alpes.fr:Projets-INFO4/19-20/8/app-pghm.git
$ cd app-pghm/GendLoc
$ npm install
$ npm install -g @angular/cli
```
#### 2. Run
```bash
$ npm start
```
Or
## Installation
```bash
$ ng serve
```
For installing the project and starting the API and the application, please go to the [wiki](https://gricad-gitlab.univ-grenoble-alpes.fr/Projets-INFO4/19-20/8/app-pghm/-/wikis/home)
### Troubleshooting
## Troubleshooting
#### Version issue of libgeos
### Version issue of libgeos
If there is an error that is raised due to a version problem we advise you to read this [snippet](https://gricad-gitlab.univ-grenoble-alpes.fr/Projets-INFO4/19-20/8/app-pghm/snippets/167)
#### pg_config is missing
### pg_config is missing
If during installation you get an error saying that pg_config is missing, just install the `postgresql-devel` package. Source [Stackoverflow](https://stackoverflow.com/questions/11618898/pg-config-executable-not-found)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment