Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.17 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.17 KB

⚠️ This library is in its early development stage. Currently it is a very simple kademlia DHT. Please come back when we are in beta! 🥹

PeARS-dht

Open in Gitpod

DHT implementation for PeARS network

Requirements

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

Usage

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 (or go run main.go)