Install fresh
go get github.com/pilu/fresh
Install dependencies
dep ensure
Database
store:store@localhost/store
Run project:
fresh
On new imports or just for fun - https://golang.github.io/dep/docs/daily-dep.html
dep ensure
Run tests on any api update or just for fun:
make build
make test
docker rm -f $(docker ps -a -q)
Make a new merge request into master and merge.
Install Swagger
go get github.com/yvasiyarov/swagger
Generate doc
swagger -apiPackage="github.com/store" -mainApiFile=main.go -output=./API.md -format=markdown