Run the project (Windows)
Last updated
Last updated
Node version - 20.15.1
Open the project with VS Code
Create a .env file in the root directory (if it doesn't exist) and copy the env.example there.
CONSENSUS_TIME=10
RPC_FEE=5
SERVER_PORT=53550
EXPOSED_URL=http://127.0.0.1:53550
Run the project to get the public and private keys (Note: It will be crushed, expected)
Find the public key file in the root directory, copy the public key
Create a file demos_peerlist.json in the root directory, and copy the demos_peerlist.json.example there and replace the “identity” with your public key.
on your machine if you don’t have it installed.
Open the Ubuntu terminal and run the following commands to install the dependencies
Go to the project folder
cd /mnt/c/Users/User/Desktop/node (example for Desktop)
Check the node version by running the following command (should be 20.15.1)
node -v
Run the following commands
sudo apt-get update
sudo apt-get install dos2unix
sudo apt install nodejs
sudo apt install npm
sudo npm install -g n
chmod +x install
sed -i 's/\r$//' ./install
./install
If you encounter any issues, please check out the section.
Run the project
Again in the Ubuntu terminal, in the project directory run the sed -i 's/\r$//' ./run command
Make sure the Docker Engine is running and you have enabled the WSL2
Open the Docker Desktop
Go to the Settings
In the General section enable the WSL 2-based engine
In the Settings menu, go to the Resources > WSL Integration section and enable the WSL 2 and Ubuntu
After enabling WSL 2 and WSL integration, click Apply & Restart to restart the Docker Desktop and apply the changes.
Run the docker --version command in the Ubuntu Terminal and check if all is set.
Go to the postgres_5332 folder of the project by running cd postgres_5332/
Run the sudo usermod -aG docker $USER command to add your user to the Docker group.
Close and open a new WSL terminal window
Go to the postgres folder again and run the command docker compose up
Go back to the root directory by running cd ../ command
Run the project ./run