cap-server is the Golang backend for the CAP project. It's has a restful API.
If you just want to try out the server, you can use go get
to install.
go get github.com/fusor/cap-server
This will install cap-server in $GOPATH/bin
. Then run cap-server
and it will start to listen on localhost:3001
.
You can work on cap-server in one of two ways. Straight on your box or using our Vagrant environment: Cap project
git clone https://github.com/fusor/cap-server.git
cd cap-server
go get . # get dependencies
go build # build binary
./cap-server # listens on port 3001
I typically checkout my go projects at the same level as the bin,pkg,src
.
mkdir -p $HOME/go/{bin,pkg,src}
export GOPATH=$HOME/go
cd $HOME/go
git clone https://github.com/fusor/cap-server.git