Simple JWT Authorisation Micro-Service
- Install dependencies
$ npm install
- Copy config files
$ cp ./config/config.json.dist ./config/config.json
$ cp ./config/crypto.json.dist ./config/crypto.json
-
Fill correct connection data and crypto info (salt for storing passwords, secret for JWT and JWT token expiration).
-
Run migration
$ ./node_modules/.bin/sequelize db:migrate
- Run seeds
$ ./node_modules/.bin/sequelize db:seed:all
- Run app
$ npm start