⚠️ This library is in its early development stage. Currently it is a very simple kademlia DHT. Please come back when we are in beta! 🥹
DHT implementation for PeARS network
You can click the button on top and open this repo on gitpod to get an environment with PeARSd-dht already setup
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
We use the make
targets defined in Makefile
to create a multi-node setup locally for testing purposes.
-
Each pears-dht node need a port to work, the default being 8080. This is used by the DHT to function
-
To start the first node, run the following command:
make build ./bin/pears-dht # run ./bin/peards-dht --help if you want to change port, node ID etc.
The above, will start the DHT in port 8080
-
If you are developing and want to testing it quick, run the command
make run
(orgo run main.go
)