User authentication template via JWT with Refresh Token for Express.js
Install all dependencies
$ npm install
Open src/scripts/install.js and modify the administrator user info, then run npm run init-admin
$ npm run init-admin
Modify env variables. Example:
PORT=3000
COOKIE_SECRET=ThisIsSuperSecret
JWT_SECRET=ThisIsSuperSecret2
JWT_EXPIRES_IN=15m
MONGO_URI=mongodb://localhost/database-name
The proyect use Babel, so you need to compile the project before start.
$ npm run build
And start
$ npm run start