A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ yarn install
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn 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.
Para configurar o ambiente corretamente, siga os passos abaixo: certifique-se de ter uma imagem Docker do PostgreSQL configurada com o nome do banco de dados como convertax. Crie um arquivo .env na raiz do seu projeto com as seguintes variáveis de ambiente:
###################
# General config
# V.01
###################
API_PORT=8080
API_HOST=http://localhost:8080
###################
# Database config
# V.01
###################
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DATABASE=convertax
POSTGRES_HOST=localhost
POSTGRES_LOGGING=false
POSTGRES_PORT=5432
POSTGRES_SSL=false
###################
# Auth config
# V.01
###################
AUTH_ACCESS_TOKEN_SECRET=mdasdaasmasp
AUTH_ACCESS_TOKEN_EXP=1200
Após configurar o banco de dados e criar o arquivo .env com as variáveis de ambiente, você pode iniciar a aplicação usando o comando yarn start.
Para validação dos dados de entrada foi usada a lib Zod. As demais libs usadas foram implementadas diretamente do framework NestJS
.