Skip to content

Users Authentication API created using nestjs typeorm and mongodb

Notifications You must be signed in to change notification settings

tnram-optisol/user-auth-api

Repository files navigation

Users Authentication API

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.

Setup for the project

  • 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
    

To start the API

For development without watching for changes

 npm run start

For development with watching for changes

  npm run start:dev

Tech Stacks Used