Skip to content

fusor/cap-server

Repository files navigation

Overview Build Status Coverage Status

cap-server is the Golang backend for the CAP project. It's has a restful API.

Usage

Installation

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.

Development

You can work on cap-server in one of two ways. Straight on your box or using our Vagrant environment: Cap project

straight from the source repo

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

using vagrant

Vagrant environment

Golang primer

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