This is the authorization server using JWT.
In this guide has been used Yarn as package manager, but if you want you can use NPM instead.
Install dependencies
yarn
To configure this project has been used node-config package, there is a config directory to handle the environments; if you need you own configuration please create a local.json file with yours parameters within.
vi /config/local.json
The environment is set according NODE_ENV variable.
export NODE_ENV=production
If you need to seed the database use
yarn seed
Watch out!! The script will drop all your data!
To run the server in debug mode please use the related script.
yarn dev
In this way the script is listening to the code and restart itself automatically. Furthermore on port 9229 you can attach a debug console.