This shows how to run a Decentralized Web Node (DWN) that is publicly addressable. This is useful for demos and testing.
This build depends on the g++
compiler, GNU's C++ compiler impl. When not available on the system, you may find in your error logs:
npm ERR! make: g++: No such file or directory
To fix, ensure g++
is available on your system:
Install Xcode Command Line tools.
sudo dnf install -y g++
For other platforms, use your appropriate repository manager, for instance yum
, apt-get
, or deb
.
In Windows Subsystem for Linux (WSL): sudo apt-get install build-essential gdb
. (Untested; please open issue or PR to validate/correct and update this documentation!)
npm install --install-links # --install-links installs `message-store-level-v2` which was built in the [pre-requisites](../README.md#pre-requisites-just-do-once)
node src/index.js