Skip to content

Nest authentication with mongodb, redis, passport, jwt

Notifications You must be signed in to change notification settings

mvtcode/nest-authentication

Repository files navigation

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

About

Nest authentication with mongodb, redis, passport, jwt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published