IGPlaner Backend
IGPlaner backend is the backend for a School System called IGPlaner.
Installation
Use the package manager npm to install igplaner-back-dev.
In local folder:
npm install --unsafe-perm igplaner-back-dev
Globally:
npm install -g --unsafe-perm igplaner-back-dev
This package requires a mongodb installation.
###Autostart
If you are using systemd, you can use this script:
Usage
The package is managed by environment variables:
"PORT": "<Port of the backend, default 3000>",
"MONGODB_USER": "<User of your mongodb>",
"MONGODB_PASSWORD": "<Password of the user>",
"MONGODB_HOST": "<Mongodb host, default localhost>",
"MONGODB_PORT": "<Mongodb port, default 27017>",
"MONGODB_DB": "<Mongodb database>",
"JSON_WEB_TOKEN_KEY": "<some random string for generating json web tokens>"
###Starting and stopping
Global installation:
igplaner-dev-cli start //starting
igplaner-dev-cli stop //stopping
Local installation:
./node_modules/.bin/igplaner-dev-cli start //starting
./node_modules/.bin/igplaner-dev-cli stop //stopping
Contributing
Pull requests are welcome.
License
CC BY-NC-ND