Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamkoller/descomplicando-nestjs
Descomplicando Nestjs
https://github.com/williamkoller/descomplicando-nestjs
api docker jest nestjs nginx postgresql tdd testing typeorm
Last synced: 2 months ago
JSON representation
Descomplicando Nestjs
- Host: GitHub
- URL: https://github.com/williamkoller/descomplicando-nestjs
- Owner: williamkoller
- License: mit
- Created: 2022-05-25T20:02:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T18:54:48.000Z (over 2 years ago)
- Last Synced: 2023-03-03T21:09:31.637Z (almost 2 years ago)
- Topics: api, docker, jest, nestjs, nginx, postgresql, tdd, testing, typeorm
- Language: TypeScript
- Homepage: https://descomplicando-nestjs.herokuapp.com/api/docs/
- Size: 403 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CodeQL](https://github.com/williamkoller/descomplicando-nestjs/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/williamkoller/descomplicando-nestjs/actions/workflows/codeql.yml)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/74f9acc450a146bea6c3e23d63c4bd62)](https://www.codacy.com/gh/williamkoller/descomplicando-nestjs/dashboard?utm_source=github.com&utm_medium=referral&utm_content=williamkoller/descomplicando-nestjs&utm_campaign=Badge_Grade)
![descomplicando-nestjs Actions](https://api.meercode.io/badge/williamkoller/descomplicando-nestjs?type=ci-score&lastDay=14)
[![CodeFactor](https://www.codefactor.io/repository/github/williamkoller/descomplicando-nestjs/badge)](https://www.codefactor.io/repository/github/williamkoller/descomplicando-nestjs)
[![CI/CD Nodejs Application](https://github.com/williamkoller/descomplicando-nestjs/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/williamkoller/descomplicando-nestjs/actions/workflows/ci-cd.yml)# Descomplicando Nestjs
- Requerido `docker` e `docker-compose`
## Como rodar esse projeto?!
1 - copiar o arquivo `.env.sample` para `.env` => `cp -r .env.sample .env`
- 1.1 - exemplo do arquivo `.env`
```
# Application
APP_URL=http://descomplicando-nestjs
DEFAULT_STRATEGY=jwt
JWT_SECRET=secret
JWT_EXPIRES_IN=2h
NODE_ENV=development
PORT=3001
PROPERTY_USER=user
SESSION=false
LOGGING=false# Database
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=docker
POSTGRES_PASSWORD=docker
POSTGRES_DATABASE=docker_db#Nginx
NGINX_PORT=80
```2 - rodar o projeto com o docker:
- 2.1 - `docker-compose up` ou `make up`
3 - rodar as migrations:
- 3.1 - acessar o container do projeto `docker exec -it descomplicando-nestjs sh`
- 3.2 - rodar migrations `yarn typeorm:migration:run`4 - adicionar o server_name no hosts do seu computador:
- 4.1 `sudo nano /etc/hosts`
```
127.0.0.1 descomplicando-nestjs
```5 - projeto pronto para ser usado.