Skip to content

lvela/veg_rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

A rest API to serve up vegetable data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages