goa-sample

command module
v0.0.0-...-abdcf8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

README

simple goa sample program for the trial usage

environment

  • docker
  • goa
  • dep
  • gorm
  • sql-migrate

installation &setup

  • install mercury
    run brew install mercurial to avoid the following hang of freeze during fetching of goa.
$ pstree 69752
-+= 69752 hiroyukikamisaka dep ensure -v
 \-+= 71086 hiroyukikamisaka /Applications/Xcode.app/Contents/Developer/usr/bin/git ls-remote ssh://git@bitbucket.org/pkg/inflect
   \--- 71087 hiroyukikamisaka /usr/bin/ssh git@bitbucket.org git-upload-pack '/pkg/inflect'
  • install goa run go get -u github.com/goadesign/goa/... to get goa and goagen

  • install dep
    run go get -u github.com/golang/dep/cmd/dep to get dep

  • launch docker

$ make read-env
$ make docker-build
$ make docker-run

only the purpose of restart, run make docker-run.

Development

run following commands after update the go files in design directory.

$ make controller
$ make app

To update the swagger document, run make swagger.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL