Dependencies

After downloading and installing both dependencies do not forget to setup your go-environment:

1
2
3
    export GOROOT=/opt/golang
    export GOPATH=$HOME/.golang
    export PATH=$PATH:$GOPATH/bin

This will ensure that all source files and binaries will be placed in $GOPATH and will be available in your shell via your $PATH-variable.

Workspace

Building a development environment requires fetching the sources first:

1
    go get -d github.com/ganggo/ganggo

Finally we can execute make to fetch the rest of the npm/GoLang dependencies:

1
    cd $GOPATH/src/github.com/ganggo/ganggo && make install

Depending on your internet connection, that could take a while.

That’s it! You can switch into $GOPATH/src/github.com/ganggo/ganggo apply your changes and start the web-server by running:

1
    revel run github.com/ganggo/ganggo

Unit tests

Running unit tests can be achieved by simply executing make

1
    make test

or alternatively revel:

1
    revel test github.com/ganggo/ganggo

Updater

Assuming you already installed all dependencies and followed the above examples you can build a new release with:

1
    VERSION=v0 make release