This is an example of gin + gorm + testing with Hexagonal Architecture
- adapter : include primary/driving adapters (web) and secondary/driven adapters (database)
- application : include domain and application services, each application service defines its own input/output port interface
docker-compose up -d
Watch logs to confirm whether the installation was successful
docker-compose logs -f -t
See more API description in OpenAPI YAML
make test
- running all containers :
docker-compose start
- stop all containers :
docker-compose stop
- restart all containers :
docker-compose restart
- remove all containers, images and network :
docker-compose down
- update go modules :
make mod-tidy
There are some documents to introduce Hexagonal Architecture