rogargon / nestjs-template

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:TypeScript 63.7%Language:Gherkin 33.0%Language:JavaScript 2.8%Language:Shell 0.5%