zeroclaw/run_dashboard.sh
argenis de la rosa b89a3cd6d3 feat(dashboard): update installer, pairing flow, and branding
- Switch one-click bootstrap docs and scripts to the new zeroclawlabs.ai install.sh domain-based installer
- Refine dashboard pairing UX, sidebar branding, and layout; wire Vite proxy to gateway /pair on the default port for reliable 6-digit pairing

Made-with: Cursor
2026-03-03 02:32:39 -05:00

35 lines
989 B
Bash

#!/bin/bash
# Quick setup script to run ZeroClaw web dashboard
echo "🦀 ZeroClaw Web Dashboard Setup"
echo "================================"
# Check if web assets are built
if [ ! -d "web/dist" ]; then
echo "📦 Building web assets first..."
cd web
npm run build
cd ..
echo "✅ Web assets built!"
fi
# Build the project
echo "🔨 Building ZeroClaw binary with embedded web dashboard..."
cargo build --release
# Check if build was successful
if [ -f "target/release/zeroclaw" ]; then
echo "✅ Build successful! Web dashboard is embedded in the binary."
echo ""
echo "🚀 Starting ZeroClaw Gateway..."
echo "📱 Dashboard URL: http://127.0.0.1:3000/"
echo "🔧 API Endpoint: http://127.0.0.1:3000/api/"
echo "⏹️ Press Ctrl+C to stop the gateway"
echo ""
# Start the gateway
./target/release/zeroclaw gateway --open-dashboard
else
echo "❌ Build failed! Please check the error messages above."
exit 1
fi