Skip to content

trandinhvi39/nestjs-with-graphql

Repository files navigation

NestJS with Graphql

Structure project with NestJS and Graphql

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

# generate schema
$ npm run generate:schema

# seed cats data
$ npx nestjs-command seed:cats

# seed users data
$ npx nestjs-command seed:users

# eslint check
$ npm run lint

Setup with Docker

# build node image
$ docker-compose build

# start the services
$ docker-compose up -d

# view the logs
docker-compose logs -f

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

With the server running, visit http://localhost:3000/graphql

License

Nest is MIT licensed.

About

NestJS with Graphql Structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published