Local CA needs to be provisioned. Just installed.
To list all available commands:
just RUN_ENV=multi
There are two local environments available:
- multi_ne - no entitlements
- multi - entitlements are enabled
Environment name always needs to be provided through RUN_ENV variable.
Config, build and start in background:
just RUN_ENV=multi config-and-start
Stop:
just RUN_ENV=multi stop
See colored logs in realtime (Ctrl-C to exit):
just RUN_ENV=multi tail-logs
Just build:
just RUN_ENV=multi build
Just start with existing config and binary:
just RUN_ENV=multi start
There are run
version of commands that wait for Ctrl-C and stop nodes on exit:
just RUN_ENV=multi config-and-run
just RUN_ENV=multi config-run-tail
just RUN_ENV=multi run
just RUN_ENV=multi run-and-tail
brew install just
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
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