This is Go API project starter implementing net/http with hexagonal architecture.
Migrations are performed using pressly/goose.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Run build make command with tests
make all
Build the application
make build
Register DB container
make docker-up
Shutdown DB Container
make docker-down
DB Integration Tests:
make itest
Run the application
make run
Live reload the application:
make watch
Run the test suite:
make test
Clean up binary from the last build:
make clean
Seed the database:
make seed
Generate swagger documentation:
make swag