brew install protobuf@3
brew link --overwrite protobuf@3
go install github.com/bufbuild/buf/cmd/buf@latest
There are addition install steps for go tools in ./node/README.md
Protobufs are generated for go and typescript
cd proto
yarn buf:generate
cd node
go generate -v -x protocol/gen.go
First create the CA and register it with Mac OS:
scripts/register-ca.sh
Then generate the TLS certificates for the node:
scripts/generate-ca.sh
Start storage backend, build node and start:
scripts/launch.sh
Run client tests:
yarn csb:turbo
Run node tests:
cd node
go test -v ./...
Build is incremental, as such it may get confused when packages are updated or branches are switched.
Clean build artificats and rebuild:
yarn csb:clean
yarn csb:build