Running Locally
Quick Start
# Terminal 1: Start P2P Registry
cargo run --bin p2p_registry_node
# Terminal 2: Start Gateway
cargo run --bin gateway_node
# Terminal 3: Start Compute Node
cargo run --bin compute_node -- --gateway-addr http://127.0.0.1:50051
# Terminal 4: Run Test Client
cargo run --bin test_clientPrerequisites
Step 1: Start P2P Registry
Expected Output
Verify Registry
Step 2: Start Gateway Node
Environment Variables
Expected Output
Verify Gateway
Step 3: Start Compute Node
Configuration Options
Environment Variables
Expected Output
Verify Compute Node
Step 4: Run Test Client
Expected Output
Local Development Workflow
Full Stack Command Reference
Using cargo-watch (Auto-Restart)
Local Blockchain (Optional)
Start Anvil
Deploy Contracts
Configure Gateway for Payments
Port Reference
Service
Port
Protocol
Debugging Tips
Enable Debug Logging
Check Service Connectivity
View Active Connections
Common Issues
"Connection refused" to Registry
"No compute nodes available"
"Sandbox failed" on Compute
Changes not taking effect
Next Steps
Last updated
