This is an API project for a role-aware user authentication/registration system, using restify + mondodb.
- Routing
- Hypermedia Rest
- JWT configuration
- Authenticated routes with roles
- Logger
- Errors handling
- Tests
- Cors configuration
Builds the app for production to the dist folder.
npm run build
Runs the app in the development mode.
npm run dev
Launches the test runner.
npm run test
I advise using docker to instantiate the database
docker run -d -p 27017:27017 -v /project-folder-data/db:/data/db --name auth-mongo mongo
Install the loadtest before running the codes below
loadtest -c 100 -t 15 http://localhost:4000