A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ git clone https://github.com/vocaotri/nest-auth-jwt.git
$ cd nest-auth-jwt
$ npm install
$ cp .env.example .env
# development
$ npm run start (nest start)
# watch mode
$ npm run start:dev (nest start --watch)
# production mode
$ npm run start:prod (node dist/main)
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- 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
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.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed. | @TriPro