Skip to content
Rodrigo Contreras edited this page Feb 16, 2019 · 2 revisions

Contribute

Installation

Download dependencies

The first step is to download Go, official binary distributions are available at https://golang.org/dl/. If you are upgrading from an older version of Go you must first remove the existing version.

Download the package file, open it, and follow the prompts to install the Go tools. The package installs the Go distribution to /usr/local/go. The package should put the /usr/local/go/bin directory in your PATH environment variable. You may need to restart any open Terminal sessions for the change to take effect.

Make sure you have defined your GOPATH:

export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

Now you need to download and configure MongoDB and Redis. Alternatively you can use remote servers.

Install dep for go dependencies: https://github.com/golang/dep. In MacOS it can be installed with brew.

Execute the following command: go get https://github.com/cespare/reflex

Download the repositories

Download the core in this path: $GOPATH/src/github.com/tryanzu/core

Initialize the repo submodule, so the frontend is in static/frontend.

git submodule update --init --recursive

Install the frontend dependencies with npm install.

Install the core dependencies with dep ensure.

Configure

Copy the .env.example file into .env and edit it to meet your local environment configuration.

Edit static/frontend/src/index.html. The window.Anzu var is the configuration section.

Last steps

Execute the script develop.sh to have hot reload (compile and run) while editing the core code.

Execute brunch watch -s in static/frontend to have hot reload while editing the frontend code.

Clone this wiki locally