- Go v1.17.7
- Gin HTTP Framework
- GORM for SQL ORM
- PostgreSQL as DBMS
- Testify for testing tools
In this project, im using Clean Architecture principles with Domain Design Driver (DDD) that consist 4 layer:
- domain/entity/model
- repository
- usecase/service
- handler/controller/delivery
1. Clone this repository : git clone git clone https://github.com/yerobalg/delos-farm.git
2. Enter to directory : cd delos-farm-backend
3. Copy or rename the .env.example file to .env, enter your credential
3. Run postgres db : docker compose up -d
4. Run test : go test -v ./...
5. Run go app : go run ./app/http/
6. To shut down db : docker compose down
Note:: to avoid error, do not run the postgres DB in port 5432