A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# Config variáveis de ambiente e etc.
$ npm i @nestjs/config
# class-validate
$ npm i class-validator class-transformer
# mapped-types
$ npm install @nestjs/mapped-types
# prisma
$ npm i -D prisma
# init prisma
$ npx prisma init
# Para ler a estrutura existente no banco de dados e montar o schema a partir da estrutura existente
$ npx prisma db pull
# para criar migrations
$ npx prisma migrate dev --name <nomeMigration>
# Para somente gerar a estrutura do prisma no projeto de acordo com o schema
$ npx prisma generate
## JWT Authentication v9.0
$ npm i npm i @nestjs/[email protected]
## bcrypt
$ npm i bcrypt
# types bcrypt
$ npm i -D @types/bcrypt
## Regulador de pressão (throttlers - Configuravel para impedir ataques de muitas requisições)
$ npm i @nestjs/throttler@^3.1.0
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
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.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.