Installation instructions are currently only available for Macs.
- Install Homebrew.
- Use Homebrew to install MongoDB:
brew install mongodb
.
- Install Homebrew.
- Use Homebrew to install Go:
brew install go
. - Set up the Go workspace
mkdir ~/Go
cd ~/Go
mkdir bin pkg src
- Set up Go environmental variables. Typically you want to copy and paste this into
~/.bash_profile
.
export GOPATH=$HOME/Go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
- Clone this repository into ~/Go/src/github.com/
mkdir -p ~/Go/src/github.com/cu-sage
cd ~/Go/src/github.com/cu-sage
git clone [email protected]:cu-sage/sage.git
- Install the package dependencies
cd ~/Go/src/github.com/cu-sage/sage
go get
go install
First follow the instructions to start the MongoDB database. Then follow the instructions to start the Go server.
- Open a new window in Terminal.
- Start the daemon process:
mongod --config /usr/local/etc/mongod.conf
.
- Open a window in Terminal.
- Go to
~/Go/github.com/cu-sage-sage
. - Pull the latest version of the server:
git pull
. - Compile the code:
go build
. - Start the server:
go run main.go
.