-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·40 lines (34 loc) · 928 Bytes
/
start.sh
File metadata and controls
executable file
·40 lines (34 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# AIrChat - Start all services
echo "🌍 Starting AIrChat Services..."
echo ""
# Start API Gateway (Express)
echo "📍 Starting API Gateway (port 3000)..."
cd api && node server.js &
API_PID=$!
sleep 2
# Start Backend Service (FastAPI)
echo "🔬 Starting Backend Service (port 8000)..."
cd ../svc
source .venv/bin/activate
uvicorn main:app --reload --port 8000 &
SVC_PID=$!
sleep 2
# Start Frontend (Vite)
echo "⚛️ Starting Frontend (port 5173)..."
cd ../web
npm run dev &
WEB_PID=$!
echo ""
echo "✅ All services started!"
echo ""
echo "📍 API Gateway: http://localhost:3000"
echo "🔬 Backend Service: http://localhost:8000"
echo "⚛️ Frontend: http://localhost:5173"
echo ""
echo "API Docs: http://localhost:8000/docs"
echo ""
echo "Press Ctrl+C to stop all services"
# Wait for Ctrl+C
trap "kill $API_PID $SVC_PID $WEB_PID 2>/dev/null; exit" SIGINT SIGTERM
wait