Comment on page
Development environment setup
How to setup a local and shared development environment
These setup instructions for DKG v6 are "Work in progress" and are subject to change. The development team expects to introduce improvements of setting up the DKGv6 node in local environment in the future.
Need any assistance with node setup? Join the DKGv6 Discord chat and find help within the OriginTrail tech community!
- This instructions are made for MacOS and Linux
- An installed and running Blazegraph
- An installed and running MySQL
- You need to create empty table named operationaldb inside MySQL
- You should have installed npm and Node.js (v16)
git clone https://github.com/OriginTrail/ot-node
cd ot-node
npm install
Step 3 - Create .env file the ot-node root folder and add following line:
NODE_ENV=development
RPC_ENDPOINT=http://127.0.0.1:8545
Step 4 - Start local DKG network
In order to start the local DKG network, run the local network setup script to have multiple nodes running in local environment:
The scripts below only work for macOS and WSL. If you need help with the setup on contact the team on Discord.
In order to start the local DKG network on macOS, run the local network setup script to have multiple nodes running in local environment:
bash tools/local-network-setup/setup-macos-environment.sh --nodes=12
For running the local DKG network on WSL, execute the local network setup script. This will configure and launch multiple nodes within your WSL environment:
./tools/local-network-setup/setup-wsl-environment.sh --ubuntuVersion=Ubuntu --nodes=12

Successfully started node
For a shared development environment, we recommend deploying DKG testnet nodes on the testnet - instructions can be found here.