utpal-barman / nestjs-rest-sample

NestJS RESTful APIs Sample

Home Page:https://hantsy.github.io/nestjs-rest-sample/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NestJS Sample

Compile and build Build Docker Image Run e2e testing codecov

A NestJS RESTful APIs sample project, including:

  • Restful APIs satisfies Richardson Maturity Model(Level 2)
  • Custom Mongoose integration module instead of @nestjs/mongoose
  • Passport/Jwt authentication with simple text secrets
  • Fully testing codes with Jest, jest-mock-extended, ts-mockito, @golevelup/ts-jest etc.
  • Github actions workflow for continuous testing, code coverage report, docker image building, etc.

Docs

Build

Install the dependencies.

$ 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:cov

Reference

About

NestJS RESTful APIs Sample

https://hantsy.github.io/nestjs-rest-sample/

License:GNU General Public License v3.0


Languages

Language:TypeScript 99.1%Language:JavaScript 0.6%Language:Dockerfile 0.2%Language:Shell 0.1%