bilicc / go-todo

TODO microservice written in go with Gin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

TODO microservice written in go with Gin


Languages

Language:Go 98.1%Language:Makefile 1.9%