Example (seed) project for microservices in go using the Gin web framework.
See the blog post for a walk through.
make build
mysql -u root -p -e 'Create Database Todo;'
./cmd/server/server --config config.yaml migratedb
There's also a make
target: make migrate
, but you still need to create the database by hand.
./cmd/server/server --config config.yaml server
The tests leverage a running instance of the server. This is automated with the Make
target
make test