PRIMEIRO CONTATO COM NEST

  • INSTALAÇÕES E COMANDOS IMPORTANTES FEITOS NO CLI:

Criar arquivo create-db.sql

createdb create-db.sql

Subir o DB

docker-compose up

Necessário

Instalação do Docker

Instalação do DBeaver

TypeORM - Instalações necessárias para criação the tabelas e schemas

npm install @nestjs/typeorm

npm install @nestjs/config

Instalação do TypeORM

npm install @types/typeorm

npm install typeorm --savenpm install @types/typeorm

npm install reflect-metadata --save

Instalar o Postgres

npm install pg

Gera e/ou modifica arquivos baseados no 'schematic'

Exemplos: "nest g service users --no-spec", "nest g controller users --no-spec", "nest g module users --no-spec"

Utilização do Pipes

"npm i --save class-validator class-transformer"


Nest Logo

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

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ 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

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.