• Stars
    star
    192
  • Rank 202,019 (Top 4 %)
  • Language
    Go
  • Created over 10 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TODO microservice written in go with Gin

REST Microservice in Go for Gin

Example (seed) project for microservices in go using the Gin web framework.

See the blog post for a walk through.

Hacking

Build Service

make build

Build the Database

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.

Run the Service

./cmd/server/server --config config.yaml server

Testing

The tests leverage a running instance of the server. This is automated with the Make target

make test