Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hugocruzlfc/nest-coffee

Official course by NestJs about Nest 10 + graphql + Apollo and more!
https://github.com/hugocruzlfc/nest-coffee

Last synced: 15 days ago
JSON representation

Official course by NestJs about Nest 10 + graphql + Apollo and more!

Awesome Lists containing this project

README

        


Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications.

## Installation

```bash
$ npm install
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## Notes

```bash
# Create a entity
$ nest g class coffees/entities/coffee.entity --no-spec

# Create a resolver
$ nest g resolver coffees

# Create a service
$ nest g s coffees
$ nest g resolver coffees/coffee-flavors --flat , 👈🏻 this flag say to CLI to not create a folder and push the resolver to the coffees folder

# Create a module
$ nest g module new-module-name

# Create a provider
$ nest g provider coffees/data-loader/flavor-by-coffee.loader

```