Skip to content

Latest commit

 

History

History
95 lines (55 loc) · 1.07 KB

README.md

File metadata and controls

95 lines (55 loc) · 1.07 KB

Nestjs Authentication

Nestjs authentication template

Description

This project for base authentication

Features

  • Register user

  • Login

  • Get profile

  • Roles

  • Refresh token

  • Change password

  • Delete account

Technology used

  • Nestjs

  • Swagger

  • Mongodb

  • Redis

  • Passport

  • JWT

  • class-validator

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Document api: http://localhost:3000/docs

Running with docker-compose

docker-compose up --build

Document api: http://10.10.10.2/docs

Authentication docs: tanmv/MVT@2022

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Screenshot

Screenshot docs

Author

Email: macvantan@gmail.com

Fb: fb/mvt.hp.star

Skype: trai_12a1