Clean architecture with gin framework, air hot reload library, gorm as orm for database related operations.
A sample project to learn about Golang, Docker and Clean Architecture.
git clone https://github.com/takeuchi-shogo/clean-architecture-golang.git
docker-compose --env-file ./.env -f docker/docker-compose.yml up -d
localhost:8081
Folders related to the application itself.
bin
binary folder.
lib
load environment variables.
/src
Contains the project source code.
/adapters
interface layer.
/applications
business logic layer.
/entities
domain layer.
/infrastructure
infra layer.
tasks
tmp
air.toml
https://github.com/cosmtrek/air
of setting file
go.mod, go.sum
golang modules.
main.go
root file.
Contains the docker.
Contains the database.
Contains the nginx.
.env
Application-wide environment variable configuration file.
。。。。。