This is basic setup of N tier arcitecture with Gin framework.
Arch is consisted of 4 layers:
- Controllers
- Business
- Services
- Repositories
- Migrations are implemented with go migrate and they are executed when you build the project.
- GORM is used as a ORM.
- Entry point of the app is main.go file where everything starts. Golobby container is used to setup DI container.
- Unit tests are implemented for repository and service layer