This project is a simple authentitacion server
This project can be launch by doing npm run start You can also use the existing vscode configuration
You will need a mongodb to make it work, you can
Commande | Description |
---|---|
start | Launch the project |
start:prod | Launch the builded project in prod mode |
build | Build the project |
test | Launch all jest test |
test:unit | Launch jest unit test |
test:e2e | Launch jest e2e test |
By default the project is configured thanks to src/config/default.js This configuration can be overrided by another file if you specify another one thanks to NODE_ENV Exemple NODE_ENV=development will load the default.js and will override it with src/config/development.js
Variable | Description |
---|---|
MONGO_URL | Mongo URL |
SERVER_PORT | Server PORT |
SERVER_PATH | Server base path |
LOG_LEVEL | Log level |
AUTH_TOKEN_NAME | Auth token name |
AUTH_JWT_KEY | Private key used to encrypt the jwt token |
SWAGGER_ACTIVATED | active or not the swagger |
ADMIN_ACCOUNT | admin login |
ADMIN_PWD | admin password |
- nestjs : https://docs.nestjs.com/controllers