Lincolnwallace1 / BackEnd-em-Nestjs

BackEnd de investimentos em NestJs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn 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.

Testar o projeto

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.

About

BackEnd de investimentos em NestJs.


Languages

Language:TypeScript 89.8%Language:JavaScript 10.2%