-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_services.sh
More file actions
executable file
·47 lines (39 loc) · 1.19 KB
/
start_services.sh
File metadata and controls
executable file
·47 lines (39 loc) · 1.19 KB
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
41
42
43
44
45
46
47
#!/bin/bash
# Startup script for UI Agent Testing API and Web Interface
# This script starts both the FastAPI backend and Flask front-end
echo "================================================"
echo "UI Agent Testing - Starting Services"
echo "================================================"
echo ""
# Get the directory where this script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
echo "[1/2] Starting FastAPI Backend (Port 8000)..."
echo ""
python3 api.py &
FASTAPI_PID=$!
sleep 3
echo "[2/2] Starting Flask Front-end (Port 5000)..."
echo ""
cd front-end
python3 app.py &
FLASK_PID=$!
cd "$SCRIPT_DIR"
echo ""
echo "================================================"
echo "Services Started Successfully!"
echo "================================================"
echo "FastAPI Backend: http://localhost:8000"
echo "FastAPI Docs: http://localhost:8000/docs"
echo "Flask Frontend: http://localhost:5000"
echo "================================================"
echo ""
echo "Process IDs:"
echo " FastAPI: $FASTAPI_PID"
echo " Flask: $FLASK_PID"
echo ""
echo "To stop services, run:"
echo " kill $FASTAPI_PID $FLASK_PID"
echo ""
# Wait for both processes
wait