This project contains the user authentication api and authorization api build by using NestJs, Typeorm and MongoDB.
For the authentication and authorization JWT package was used to generate the token and for checking the data.
Supports docker installation for the mongo db.
Password hashing is done by using bcrypt and it is maintained securely and safely.
-
As the project database uses docker please install Docker-Desktop from the secure site
-
Once on successful installation
To up the docker instance
docker-compose -f ./local/docker-compose.yml up
To terminate or close the docker instance
docker-compose -f ./local/docker-compose.yml down
For development without watching for changes
npm run start
For development with watching for changes
npm run start:dev