https://github.com/joaorafa19/plataforma-ead
https://github.com/joaorafa19/plataforma-ead
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/joaorafa19/plataforma-ead
- Owner: JoaoRafa19
- Created: 2024-08-20T19:55:15.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T17:36:00.000Z (9 months ago)
- Last Synced: 2025-02-16T07:42:29.611Z (4 months ago)
- Language: Go
- Size: 3.41 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Plataforma EAD
## __Observação__
É necessário criar o arquivo .env na raiz do projeto e na pasta service core com as variáveis de ambiente necessárias
ex.:
```.env
DATABASE_PORT=5432
DATABASE_USER="postgres"
DATABASE_PASSWORD="123456789"
DATABASE_NAME="plataforma-ead"
DATABASE_HOST="service-core-db"
```### Comandos principais
***Rodando o container***
```shell
make up
```
___(ou com logs)___
```shell
MODE=l make up
```***Logs***
>Com o container já de pé ele vai acoplar o terminal ao terminal de logs do docker.```shell
make log
```Restart
> Reinicia o container
```shell
make restart
```Parar
>Encerra a execução da aplicação
```shell
make down
```# Service Core
## Dev dependencies
Protobuf compiler
```
brew install protobuf
```AIR (live reload do go)
```
go install github.com/air-verse/air@latest
```
### Comandos do projeto
Compilar os arquivo do protobuffer
```shell
make gen-grpc
```## Testes
### Service Core
Executar testes service core
```shell
make test-service-core
```## Scripts
Compila os protobuffers
```
protoc --go_out=./service-core --go-grpc_out=./service-core ./service-core/protos/*.proto
```