PGHM Project
Table of content
Run the project
To start apps is necessary to always follow the order below:
- Start the API. Go to
app-pghm/choucas/choucas
and run the following command$ python manage.py runserver
. Wait for the message that indicates the access URL (usuallyhttp://localhost:8000/
).- If you want run a dev server with https (useful for the geoloc), you can run this command
$ ./runsslserver
- If you want run a dev server with https (useful for the geoloc), you can run this command
- Start the web app. Go to
app-pghm/GendLoc
and run the following command$ npm start
or$ ng serve
. Wait for the message that indicates the access URL (usuallyhttp://localhost:4200/
).
Troubleshooting
Node version
If there is tooble with node at launch, you have to upgrate node then you can follow the lines below:
$ sudo npm cache clean -f
$ sudo npm install -g n
$ sudo n stable
To many watcher
If you have an error like this Error: ENOSPC: System limit for number of file watchers reached, watch
, copy and paste the command below to fix it.
$ sudo echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p