Development environment setup
How to setup a local and shared development environment
Last updated
Was this helpful?
How to setup a local and shared development environment
Last updated
Was this helpful?
These instructions are made for macOS and Linux.
An installed and running Blazegraph
In order to download and run Blazegraph, please visit their .
An installed and running MySQL
You need to create an empty table named operationaldb inside MySQL.
You should have npm and Node.js (v16) installed.
Need any assistance with node setup? Join the chat and find help within the OriginTrail tech community!
First, clone the ot-node repo by running:
Navigate to it:
Change the branch:
Then, install the required dependencies by running:
Next, create a file called .env
and add the following lines:
To start the local DKG network, run the local network setup script to install multiple node engines in the local environment. To ensure stability of operation, it is recommended to run at least 5 node engines (1 bootstrap and 4 subsequent node engines).
The scripts below only work for macOS and Linux (or Windows WSL).
In order to start the local DKG network on macOS, run the following command:
For running the local DKG network on Linux, run the following command:
These setup instructions are a work in progress and are subject to change. The core development team expects to introduce improvements in setting up the DKG node engine in the local environment in the future.
As ot-node is open source, we happily invite you to contribute to building the Decentralized Knowledge Graph. We're excited about your contributions!
If you need help with the setup, contact the core development team on .
For a shared development environment, we recommend deploying DKG testnet node engines - instructions can be found .
Please visit the repo for more info.