- docker
- goa
- dep
- gorm
- sql-migrate
- install mercury
runbrew install mercurial
to avoid the following hang of freeze during fetching ofgoa
.
$ 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
rungo 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
.
run following commands after update the go files in design
directory.
$ make controller
$ make app
To update the swagger document, run make swagger
.