This script automates the setup of a complete Shardeum local development environment, including a local network, validator GUI/CLI, and RPC server.
The setup script installs and configures the following components:
- Local Shardeum network (10 nodes)
- Validator CLI
- Validator GUI
- JSON RPC Server
The script will help install these, but your system should be capable of running:
- Node.js (v18.16.1)
- Rust (v1.74.1)
- Build essentials (gcc, make, etc.)
- Python 3
- Git
- Download the setup script:
git clone https://github.com/shardeum/local-setup-script.git
chmod +x setup.sh
- Run the script:
./setup.sh
-
Clone this repository:
bash git clone <repository-url> cd <repository-name>
-
Make the script executable:
bash chmod +x setup.sh
-
Run the setup script:
bash ./setup.sh [REPO_PATH] [FORCE_INSTALL]
Parameters:
REPO_PATH
(optional): Path to your local Shardeum repository (if you already have it)FORCE_INSTALL
(optional): Set totrue
to force fresh installation
- Create a
.local
base directory for the installations - Install all required services and dependencies
- Set up the local Shardeum network
- Set up the JSON RPC server
- Configure and start the validator tools (CLI and GUI)
- 10-node local network for development
- Configured in debug mode
- Runs on localhost
- Command-line interface for node management
- Configured to connect to the local network
- Web interface for node management
- Runs at: http://localhost:3000 by default
- Requires the password set in Validator CLI
- Ethereum-compatible RPC interface
- Runs at: http://localhost:8080
- Allows interaction with the network using Web3 tools
If you encounter issues:
- Ensure all prerequisites are properly installed
- Check that no other services are using the required ports
- Review the logs of the installation script
- Look through the documentation for each component that is not working and see if you can find any issues.
This setup is intended to quickly get a local development environment running for development purposes only