https://github.com/waelson/goexpert-clean-architecture
https://github.com/waelson/goexpert-clean-architecture
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/waelson/goexpert-clean-architecture
- Owner: Waelson
- License: apache-2.0
- Created: 2023-10-07T22:24:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-08T02:50:33.000Z (over 2 years ago)
- Last Synced: 2025-01-07T02:05:20.724Z (over 1 year ago)
- Language: Go
- Size: 82 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Expert - Clean Architecture
Projeto baseado em arquitetura limpa e o emprego de APIs no formatos: Rest, GraphQL e gRPC
### Baixando as dependências
```
go mod tidy
```
### Subindo os servidores MySQL e RabbitMQ
```
make dep_up
```
### Criando a estrutura do banco de dados via migration
Na raiz do projeto execute o comando abaixo
```
make migration_up
```
### Iniciando o servidor
Na raiz do projeto execute o comando abaixo
```
make run
```
### Testando API Rest
- O diretório `api` contém o script necessários para incluir novas ordens no banco de dados, assim como, listar todas as ordens.
### Testando API gRPC
- Os testes devem ser feito utilizando a ferramenta `evans`
### Testando API GraphQL
- Os testes devem ser feito a URL `http://localhost:8080`