Prerequisites

Before proceeding, ensure you have the following installed and configured:

  1. Git: Install Git to clone the repository.

    sudo apt update
    sudo apt install git -y
    
    
  2. Node.js and npm: Install the latest version of Node.js (v16+ recommended).

Verify installation:

```bash
curl -fsSL <https://deb.nodesource.com/setup_16.x> | sudo -E bash -
sudo apt install -y nodejs

```

```bash
node -v
npm -v

```
  1. Docker: Required for containerization.

    sudo apt update
    sudo apt install docker.io -y
    sudo systemctl start docker
    sudo systemctl enable docker
    
    
  2. Optional: Install docker-compose if required by the setup.

    sudo apt install docker-compose -y
    
    

Clone the Repository

Clone the Stader Node GitHub repository:

git clone <https://github.com/stader-labs/stader-node.git>
cd stader-node


Install Dependencies

Run the following command to install the required dependencies:

npm install


Environment Configuration

Create .env File

Configure the environment variables required by Stader Node. Create a .env file in the project directory:

touch .env
nano .env

Add the necessary configurations (refer to the repository documentation for specific keys):