Before you can use Revel, first you need to install Go.
If you have not created a GOPATH as part of the installation, do so now. The
is a directory where all of your Go code will live. Here is one way of setting it up:
echo export GOPATH=$GOPATH >> ~/.bash_profile
Note that depending on your shell, you may need to adjust (3) to write the export into a different configuration file (e.g. ~/.bashrc, *~/.zshrc, etc.).
Now your Go installation is complete.
Git and Mercurial are required to allow
go get to clone various dependencies.
To get the Revel framework, run
go get github.com/revel/revel
This command does a couple of things:
go geton them as well.
go get to install:
go get github.com/revel/cmd/revel
$GOPATH/bin directory is in your PATH so that you can reference the command from anywhere.
Verify that it works:
$ revel help ~ ~ revel! http://revel.github.io ~ usage: revel command [arguments] The commands are: new create a skeleton Revel application run run a Revel application build build a Revel application (e.g. for deployment) package package a Revel application (e.g. for deployment) clean clean a Revel application's temp files test run all tests from the command-line Use "revel help [command]" for more information.