This is a seed app for creating opinionated micro-services that use Cockroach/PostgresSQL for storage and either:
-
the
micro api
for load balancing via the proxy handleror
-
Google App Engine
The micro-services are created from the template defined in this package.
To generate a template:
- Golang installation
GOPATH
set. See https://github.com/golang/go/wiki/SettingGOPATH for details.
To build the template, read the README.MD file of the generated project.
go get -u github.com/tomogoma/seedms
Run the following commands
(This assumes your GOPATH/bin is in your environment variable, otherwise replace
seedms
with $GOPATH/bin/seedms
in the commands below):
- See usage of the seedms command
seedms -help
- Example command to generate template for a micro-service
name:
test_service
description:A demo service
package:github.com/tomogoma/my_test_service
seedms -desc "A demo service" \ -dest "github.com/tomogoma/my_test_service" \ -name "test_service"