A Node.js authentication API that uses JWT to provide simple user authentication endpoints.
This project has a simple behavior, and it's intended to be the backbone of more complex user management.
Check the complete documentation of the API here.
$ docker-compose up
Run all tests
$ yarn test
Run all with html report
$ yarn run test-with-html-report
Run a specific test
$ yarn test-search -- "<describeString> <itString>"
Name | Value |
---|---|
DB_HOST | The MongoDB server Host |
DB_PORT | The MongoDB server Port |
DB_NAME | The MongoDB database name |
DB_USER | The MongoDB username for authentication |
DB_PASS | The MongoDB password for authentication |
WAIT_FOR_DATABASE_DELAY | The time in milliseconds that the aplication server must wait for the MongoDB server to be ready |
AUTH_SECRET | Secret for JWT encryption |
*The file .env.dev has all the necessary environment variables and their values to run the application locally. You can use it as an example.