An example of microservice application written by Golang. This project is implemented by applying clean code architecture.
├── cmd
│ └── api
│ └── main.go
├── config
├── go.mod
├── go.sum
├── internal
│ ├── client
│ ├── di
│ ├── entity
│ ├── handler
│ ├── repository
│ ├── server
│ └── service
├── pkg
└── utils
- install Go
- Install Wire Official-Site
- Install MockGen Official-Site
- Install GraphQL Official-Site
- Start Admin, MySQL container
docker compose -f /docker-compose/{file_name} up
- Create a
grocery
database - Run
make api
export APP_SERVER_ADDR=:8081
- Simply run command
make test
- HTTP Server (https://github.com/hokkung/srv)
- Gorm Repository (https://github.com/hokkung/gorem)
- Redis (https://github.com/hokkung/redis)