Server API for the Project Mogi/SmartPolicing sollution
First make sure you have NodeJS and NPM properly installed (check http://nodejs.org for help).
npm install -g forever nodemon express
npm install
The server requires a PostgreSQL database. The connection string should be put in the /lib/config/env/ json files.
- Create a production.json file at /lib/config/env/
- Save the db variable in the production.json for the server
- On the project root folder run grunt server
After deployments it's required to re-run grunt server to restart the application