This is a basic role authentication application written in Javascript using nodejs, express and mongodb.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node v8+
- MongoDB v3.6+
- Docker installed
$ git clone https://github.com/PatrickNymark/node-mongo-jwt-role-auth.git
$ cd node-mongo-jwt-role-auth
$ touch .env
To run without docker, change mongo uri to: mongodb://localhost:27017/jwt-auth
mongoURI = 'mongodb://mongo:27017/jwt-auth'
secretOrKey = 'topSecretKey'
To run without docker, run npm install and then npm start
$ docker-compose up
Patrick Nymark