-
Install Golang and bzr library
-
Install godep tool
go get github.com/tools/godep
-
Create a new work space:
mkdir ~/go-workspace export GOPATH=~/go-workspace
You may add the last export
line into the ~/.bashrc
or the ~/.bash_profile
file to have GOPATH
environment variable properly setup upon every login.
-
Get the latest version and all dependencies (Using Godep):
godep update ...
-
To build the service use the following command:
go build
-
To run the service use the following command:
./argo-web-api
For a list of options use the following command:
./argo-web-api -h
-
To run the unit-tests with coverage results:
gocov test ./... | gocov-xml > coverage.xml
-
To generate and serve godoc (@port 6060)
godoc -http=:6060