Skip to content

vocaotri/nest-auth-jwt

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ git clone https://github.com/vocaotri/nest-auth-jwt.git

$ cd nest-auth-jwt

$ npm install

$ cp .env.example .env

Running the app

# development
$ npm run start (nest start)

# watch mode
$ npm run start:dev (nest start --watch)

# production mode
$ npm run start:prod (node dist/main)

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Features

  • Register ( upload avatar, hash info user)
    • url: /auth/login
  • Login ( email, password => peronal access token)
    • url: /auth/register
  • Logout (jwt token => message)
    • url: /auth/logout
  • Refresh token ( jwt token => peronal access token)
    • url: /auth/refresh-token
  • Get profile ( jwt token => passport: peronal access token)
    • url: /profile

Postman here

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed. | @TriPro

About

Nestjs mongoose jwt passport

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published