Skip to content

jeangondorek/nestjs-app

Repository files navigation

Nest-app

Description

Nest framework TypeScript starter repository.

Installation

# INSTALL PACKAGES NODEJS/NPM
$ 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

License

MIT licensed.

Youtube class

Youtube class.

To use database in docker

# BUILD IMAGE
$ docker pull mongo
# RUN IMAGE
$ docker run --name mongodb -p 27017:27017 -d mongo

String de conexão será, o banco será criado automaticamente de acordo com o que for escrito no local de DATABASE-NAME.

mongodb://localhost:27017/DATABASE-NAME