/nestjs-graphql-sample

NestJS GraphQL Example

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

NestJS GraphQL Sample

frontend backend codecov

A NestJS GraphQL sample project, including:

  • Code first Nestjs/GraphQl development
  • TypeORM with Postgres
  • Passport/Jwt authentication with auth0.net IDP service
  • Fully testing codes with Jest, jest-mock-extended, ts-mockito, etc.
  • Github actions for continuous testing, code coverage report, docker image building, etc.

Docs

Build

Install 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

Resources