Prerequisites
- Node version: 20.15.1
- VS Code installed
- Docker Desktop installed
- WSL2 enabled (see WSL2 Setup Guide)
Setup Steps
Step 1: Project Configuration
- Open the project with VS Code
- Create a
.envfile in the root directory (if it doesn’t exist) and copy the content fromenv.example:
Step 2: Generate Keys
Run the project to get the public and private keys (Note: It will crash, this is expected):- Find the public key file in the root directory
- Copy the public key
- Create a file
demos_peerlist.jsonin the root directory - Copy the content from
demos_peerlist.json.exampleand replace the"identity"with your public key
Step 3: Setup WSL2
Setup WSL2 on your machine if you don’t have it installed.Step 4: Install Dependencies
Open the Ubuntu terminal and run the following commands:If you encounter any issues, check the Issue Troubleshooting section.
Step 5: Configure Docker
- Open Docker Desktop
- Go to Settings
- In the General section, enable the WSL 2-based engine
- In Settings, go to Resources > WSL Integration and enable WSL 2 and Ubuntu
- Click Apply & Restart to apply the changes
- Verify Docker in Ubuntu Terminal:
Step 6: Run the Project
- In the Ubuntu terminal, run:
- Go to the postgres folder and start the database:
- Close and open a new WSL terminal window
- Start the database:
- In a new terminal, go back to root directory and run the project: