Run

Run

To run server run the following command on repository root

export TREDS_PORT=7777
go run main.go -port 7777

Using docker

docker run -p 7997:7997 absolutelightning/treds

For CLI run the following command in the client folder in the repo

cd ./client
export TREDS_PORT=7777
go run main.go -port 7777

Default Port of Treds is 7997 If port is set in env variable as well as flag, flag takes the precedence.

Generating Binaries

To build the binary for the treds server, run following command in repo root - Binary named treds will be generated in repo root.

make build
GOOS=linux GOARCH=arm64 make build

To build the binary for the treds cli, run following command in repo root - Binary named treds-cli will be generated in repo root.

make build-cli
GOOS=linux GOARCH=arm64 make build-cli