A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
We will now install our needed dependencies for connecting Node JS to MongoDB and integrating JWT, We will be using Passport JWT Library for implementing JSON Web Token and Mongoose for our connection.
$ npm install @nestjs/passport @nestjs/jwt passport passport-local passport-strategy --save
$ npm install @types/passport-jwt @types/passport-local --save-dev
$ npm i passport-jwt
$ npm install @nestjs/mongoose mongoose --save
$ npm install bcrypt --save
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
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. "# arifudin-nestjs-jwt"