Development environment setup

How to setup a local and shared development environment

Quick Start


  • 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 npm and Node.js (v16) installed

Need any assistance with node setup? Join the DKGv6 Discord chat and find help within the OriginTrail tech community!

Installation steps

First, clone the ot-node repo by running:

git clone

Navigate to it:

cd ot-node

Then, install the required dependencies by running:

npm install

Next, create a file called .env and add following lines:


In order to start the local DKG network, run the local network setup script to have multiple nodes running in local environment. It's recommended to run at least 12 nodes (1 bootstrap and 11 subsequent nodes) to ensure stability of operation.

The scripts below only work for macOS and Linux. If you need help with the setup, contact the team on Discord.

In order to start the local DKG network on macOS, run the following command:

bash tools/local-network-setup/ --nodes=12

For running the local DKG network on Linux, run the following command:

./tools/local-network-setup/ --nodes=12

Running nodes on testnet

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


These setup instructions for DKG v6 are a "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.

As ot-node is open source, we happily invite you to join us in our mission of building the decentralized knowledge graph - we're excited for your contributions! Please visit the Github repo for more info.

Last updated