Skip to content

Latest commit

 

History

History
78 lines (62 loc) · 1.28 KB

CONTRIBUTING.md

File metadata and controls

78 lines (62 loc) · 1.28 KB

Contributing guide

Development environment

  • Step 1. Get Golang
brew install go
brew install glide

export GOPATH=~/workspace/go
git clone git@github.com:MysteriumNetwork/node.git $GOPATH/src/github.com/mysterium/node
cd $GOPATH/src/github.com/mysterium/node
  • Step 2. Compile code
glide install
go build github.com/mysterium/node

Running

# Start communication gateway
docker-compose up gateway

# Start node
bin/server_build
bin/server_run --node 123456

# Client connects to node
bin/client_build
bin/client_run --node 123456

Dependency management

  • Install project's frozen packages
glide install
glide install --force
  • Add new package to project
glide get github.com/ccding/go-stun
  • Update package in project
vim glide.yaml
glide update 

Debian packaging

brew install gnu-tar
gem install --no-ri --no-rdoc fpm
go get github.com/debber/debber-v0.3/cmd/...
  • Step 3. Build .deb package
bin/server_package_debian 0.0.6 amd64
bin/client_package_debian 0.0.6 amd64