Before proceeding, ensure you have the following installed and configured:
Git: Install Git to clone the repository.
sudo apt update
sudo apt install git -y
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
```
Docker: Required for containerization.
sudo apt update
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
Optional: Install docker-compose
if required by the setup.
sudo apt install docker-compose -y
Clone the Stader Node GitHub repository:
git clone <https://github.com/stader-labs/stader-node.git>
cd stader-node
Run the following command to install the required dependencies:
npm install
.env
FileConfigure 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):