This is a microservice for user authentication, part of the Quickshop project. It's built with NestJS, a progressive Node.js framework for building efficient and scalable server-side applications.
This service handles user registration, login, and token validation. It uses JWT for authentication and bcryptjs for password hashing and validation.
To install the dependencies, run:
npm install
Finally, let's run these scripts:
npm run proto:install && npm run proto:auth
To run the app in different modes, use the following commands:
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
The service uses environment variables for configuration. These are defined in the example.env
file. Make sure to provide your own values before running the service.