How to setup a local and shared development environment
These setup instructions for DKGv6 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!
Quick Start
Prerequisites
This instructions are made for MacOS and Linux
An installed and running GraphDB
In order to download GraphDB, please visit their official website and fill out a form. Installation files will be provided to you via email.
An installed and running MySQL
You need to create empty table named operationaldb inside MySQL
You should have installed npm and Node.js (v14)
Installation steps
Step 1 - Get the DKG code by cloning the repo and checking out the proper branch
1
git clone https://github.com/OriginTrail/ot-node
2
cd ot-node
3
git checkout v6/develop
Copied!
Step 2 - Install dependencies
1
npm install
Copied!
Step 3 - Create .env file the ot-node root folder and add public and private keys for blockchain:
1
NODE_ENV=development
2
PUBLIC_KEY=<insert_here>
3
PRIVATE_KEY=<insert_here>
Copied!
OriginTrail v6 development node is running on Polygon Mumbai (testnet) networkand it is currently not requiring any test TRAC tokens. Make sure that the wallet you are using in your configuration file is funded with test MATIC tokens.
Step 6 - Start OriginTrail v6 node
In order to start the node, execute the following command:
1
node index.js
Copied!
Successfully started
Running multiple nodes in local
If you managed to setup one node to function properly, then you can proceed and run the local network setup script to have multiple nodes running in local environment.
Running this command you will start a network with 4 nodes in local environment: