-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start Guide
Marc Sanchis edited this page Jun 5, 2025
·
1 revision
Get up and running with the Hyperloop UPV Control Station in just a few minutes! This guide covers the fastest path to having a working development environment.
Choose your platform and run the setup:
# Clone the repository
git clone https://github.com/HyperloopUPV-H8/software.git
cd software
# Allow script execution (one-time setup)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Setup and run
.\scripts\dev.ps1 setup
.\scripts\dev.ps1 all
# Clone the repository
git clone https://github.com/HyperloopUPV-H8/software.git
cd software
# Setup and run
chmod +x scripts/dev.sh
./scripts/dev.sh setup
./scripts/dev.sh all
Ensure you have these installed:
Requirement | Windows | macOS | Linux |
---|---|---|---|
Go 1.21+ | Download | brew install go |
sudo apt install golang-go |
Node.js 18+ | Download | brew install node |
sudo apt install nodejs npm |
Git | Download | brew install git |
sudo apt install git |
Windows:
- PowerShell 5.1+ (included in Windows 10+)
- Visual C++ Build Tools (auto-installed by Node.js)
macOS:
- Xcode Command Line Tools:
xcode-select --install
- libpcap:
brew install libpcap
Linux:
- libpcap dev headers:
sudo apt install libpcap-dev
The setup script will:
-
📦 Install Dependencies
- Downloads Go modules for backend services
- Installs npm packages for all React applications
-
🔨 Build Common Library
- Builds the shared frontend component library
- Creates necessary build artifacts
-
✅ Verify Installation
- Checks all tools are properly installed
- Validates environment configuration
After running all
, you can access:
Application | URL | Purpose |
---|---|---|
Control Station | http://localhost:5173 | Main pod control interface |
Ethernet View | http://localhost:5174 | Network monitoring and debugging |
Backend API | http://localhost:8080 | Backend services and WebSocket |
You'll know everything is working when:
- ✅ All services start without errors
- ✅ Control Station loads at http://localhost:5173
- ✅ Ethernet View loads at http://localhost:5174
- ✅ Backend API responds at http://localhost:8080
- ✅ No console errors in browser developer tools
Run services separately during development:
# Run one service at a time
./scripts/dev.sh backend # Go backend server
./scripts/dev.sh ethernet # Ethernet view frontend
./scripts/dev.sh control # Control station frontend
./scripts/dev.sh packet # Packet sender tool
Edit backend/cmd/config.toml
:
[network]
# Set your machine's IP (must match ADJ specs)
backend_ip = "192.168.0.9"
[vehicle.boards]
# Enable/disable boards as needed
VCU = true
PCU = true
TCU = true
- Board definitions:
backend/cmd/adj/boards/[BOARD_NAME]/
- Auto-updates from main branch by default
- Leave
adj/branch
blank in config for local ADJ
Services won't start
# Re-run setup
./scripts/dev.sh setup
# Check ports aren't in use
netstat -an | grep ':5173\|:5174\|:8080'
Build failures
- Verify Go and Node.js versions:
go version && node --version
- Check internet connectivity for downloads
- Review specific error messages
Permission errors (Unix)
chmod +x scripts/dev.sh
PowerShell execution errors (Windows)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Installation Guide - Detailed setup instructions
- Common Issues - Known problems and solutions
- System Requirements - Detailed requirements
- GitHub Issues - Report problems
- First-Time Setup - Complete configuration walkthrough
- Control Station Interface - Learn the interface
- Safety Procedures - Important safety information
- Development Environment Setup - Advanced dev setup
- System Architecture - Understand the system design
- Contributing Guide - How to contribute
- Operator Manual - Complete operational guide
- Configuration Guide - System configuration
- Simulation Mode - Practice without hardware
🎊 Congratulations! You now have a working Hyperloop UPV Control Station. Welcome to the team! 🚄