Step 1: Clone the adventure-layer-l2-scripts repository

  • Use the git clone command to clone the adventure-layer-l2-scripts repository from GitHub. This will download all files from the repository to your local machine.

Step 2: Initialize the environment configuration

  • Copy the .envrc.example file to .envrc. This file contains example configurations for environment variables that you can modify as needed.

Step 3: Update configuration and run

  • Install the direnv tool, which automatically loads and unloads environment variables specific to the directory.
  • Add the direnv hook to your .bashrc file and reload .bashrc to enable direnv in the current shell session.
  • Run direnv allow to allow direnv to load environment variables from the .envrc file.

Step 4: Run the Replica Node

  1. Navigate to the directory: Use the cd ./repolica-node command to navigate to the repolica-node directory.
  2. Initialize:
    • Run the ./init.sh script to initialize the Replica Node. This typically involves setting up necessary files and configurations.
  3. Run:
    • Run the ./run-all.sh script to start the Replica Node. This script will start all necessary processes and services, allowing the node to begin running and handling requests.
  4. Stop:
    • Run the ./stop.sh script to stop the Replica Node. This script will stop all related processes and services, ensuring the node shuts down safely.