MacOS setup to code and compile ZooBC

In this series of tutorial we guide step by step those that want to help the development of DecBC by hand on coding. From the node setup to all the tools to create decentralized applications, plus the insight to help code on the core node software, tutorials can be made by the community for the community. We are offering the incipit with the first few episodes.

For more informations, head to https://decbc.com and be sure to download the fist volume of the series “the journey toward decentralization” here: https://bcz.bz/vol1 (if you want buy the physical book, or the Kindle edition, you can find it at https://www.amazon.com/ZooBC-Roberto-…

Commands used in the tutorial:

#01: https://golang.org/dl/

#02: go version

#03: mkdir ~/go ; mkdir ~/go/src ; mkdir ~/go/bin ; mkdir ~/go/pkg ; mkdir ~/go/src/zoobc

#04: ps -p $$

#05A: pico ~/.zshenv

#05B: pico ~/.bash_profile

#06: export GOPATH=~/go export PATH=~/go/bin:$PATH

#07: https://code.visualstudio.com/download

#08: cd ~/go/

#09: curl -sfL https://install.goreleaser.com/github… | sh -s v1.23.8

#10: ./bin/golangci-lint –version

#11: https://docs.docker.com/docker-for-ma…

#12: go get github.com/karalabe/xgo

#13: docker pull karalabe/xgo-latest

#14: cd /usr/local/bin/

#15: mkdir /usr/local/bin

#16: sudo ln -s ~/go/bin/golangci-lint /usr/local/bin/golangci-lint

#17: sudo ln -s ~/go/bin/xgo /usr/local/bin/xgo

#18: https://github.com/zoobc/zoobc-core.git

#19: cd ~/go/src/zoobc/zoobc.core

#20: go mod download

#21: git submodule update –init –recursive –remote

#22: go mod tidy

#23: make test

#24: go build -o zoobc

#25: make VERSION=v1.10.1 core-common-os

#26: cd dist

#27: ls -aslh

#28: cd darwin

#29: sudo ./zoobc daemon status

#30: cd ../..

#31: make VERSION=v1.10.1 cmd-common-os

#32: ./zcmd -h