#!/bin/bash # Start all Product OS services for local development echo "🚀 Starting Product OS services..." cd "$(dirname "$0")/.." # Start Control Plane echo "Starting Control Plane (port 8080)..." cd backend/control-plane npm run dev & CONTROL_PLANE_PID=$! cd ../.. sleep 2 # Start Deploy Executor echo "Starting Deploy Executor (port 8090)..." cd backend/executors/deploy npm run dev & DEPLOY_PID=$! cd ../../.. # Start Analytics Executor echo "Starting Analytics Executor (port 8091)..." cd backend/executors/analytics npm run dev & ANALYTICS_PID=$! cd ../../.. # Start Marketing Executor echo "Starting Marketing Executor (port 8093)..." cd backend/executors/marketing npm run dev & MARKETING_PID=$! cd ../../.. echo "" echo "✅ All services started!" echo "" echo "Services:" echo " - Control Plane: http://localhost:8080" echo " - Deploy Executor: http://localhost:8090" echo " - Analytics Executor: http://localhost:8091" echo " - Marketing Executor: http://localhost:8093" echo "" echo "Press Ctrl+C to stop all services" # Wait for any process to exit wait # Cleanup kill $CONTROL_PLANE_PID $DEPLOY_PID $ANALYTICS_PID $MARKETING_PID 2>/dev/null