/nestjs-template

NestJS project template with JWT authentication, user management and Cucumber e2e tests

Primary LanguageTypeScriptMIT LicenseMIT

Nest Logo

Nest framework TypeScript starter template repository.

Node.js CI codecov

Description

Nest starter repository plus:

  • CORS and Helmet
  • JWT authentication, AuthGuard and RolesGuard
  • Request User param decorator
  • Validation Pipe, Not Found interceptor and Duplicate Identifier exception with exception filter
  • Simple user management API
  • Samples of service and controller Jest tests
  • Memory MongoDB for testing
  • Cucumber e2e tests
  • Seeder for default admin user
  • ...

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:e2e:cov

License

Nest and this repository are MIT licensed.