Back to Documentation

Getting Started

Welcome to the Decentralized Rights Protocol! This guide will help you set up your development environment and run your first DRP node.

Prerequisites

Before you begin, ensure you have the following installed on your system.

  • Python 3.10 or higher

    DRP is built with Python. Check your version with python --version

  • Git

    Required for cloning the repository. Install from git-scm.com

  • pip (Python package manager)

    Usually comes with Python. Verify with pip --version

  • Virtual Environment (recommended)

    Use venv or virtualenv to isolate dependencies

Installation

Follow these steps to install and set up DRP on your system.

Step 1: Clone the Repository

# Clone the DRP Blockchain repository
git clone https://github.com/Decentralized-Rights-Protocol/Dr-Blockchain.git
# Navigate to the project directory
cd Dr-Blockchain

Step 2: Create Virtual Environment

# Create virtual environment
python -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate

Step 3: Install Dependencies

# Install required packages
pip install -r requirements.txt

This will install all necessary dependencies including cryptographic libraries, networking modules, and AI frameworks.

Running Your First Node

Start a testnet node to begin participating in the DRP network.

Start Testnet Node

# Run the testnet node
python src/node.py

Your node will start connecting to the DRP testnet. You should see output indicating:

  • Node initialization
  • Peer discovery and connection
  • Blockchain synchronization status
  • Consensus participation

Configuration

DRP nodes can be configured through environment variables or configuration files. Key settings include:

NODE_HOST- Network interface to bind to (default: 0.0.0.0)
NODE_PORT- Port to listen on (default: 8080)
NETWORK- Network mode: testnet or mainnet

Next Steps

Now that your node is running, explore these resources to learn more about DRP: