Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 811 Bytes

README.md

File metadata and controls

66 lines (44 loc) · 811 Bytes

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.