The DHT and BlockChain for Lighthouse p2p
- Golang installed on your system
- A fully configured and secure postgres server
- A fully configured and secure redis server
git clonethis repository- Copy
.env.sampleto.env - Change the values in
.env(WARNING: DO NOT MODIFY.env.sample) - Make a directory named
build -
- For POSIX systems, run
go build -o build/lighthousehub cmd/lighthousehub/main.go - For Windows systems, in a
PowerShellwindow,go build -o .\build\lighthousehub.exe .\cmd\lighthousehub\main.go
- For POSIX systems, run
- Double check all the values in
.env - Run
./cmd/lighthousehubfor POSIX systems, or.\cmd\lighthousehub.exefor Windows systems in aPowerShellwindow
- Verify that the server is running on the specified
HTTP_ADDR. If you seeCannot GET /, it means the server is successfully configured and running
Click here to see the documentation about the protocol and the algorithm used.
Lighthouse Hub is licensed under the AGPL-3.0-or-later license. You can obtain a copy here.