-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·39 lines (33 loc) · 902 Bytes
/
run.sh
File metadata and controls
executable file
·39 lines (33 loc) · 902 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
#!/usr/bin/env bash
# Start the full ASPECTT stack (backend + frontend)
set -e
ROOT="$(cd "$(dirname "$0")" && pwd)"
BACKEND_PID=""
FRONTEND_PID=""
cleanup() {
echo ""
echo "Shutting down..."
[ -n "$BACKEND_PID" ] && kill "$BACKEND_PID" 2>/dev/null
[ -n "$FRONTEND_PID" ] && kill "$FRONTEND_PID" 2>/dev/null
wait 2>/dev/null
echo "Done."
}
trap cleanup EXIT INT TERM
# Start backend
echo "Starting backend on http://localhost:8000 ..."
cd "$ROOT/aspectt-backend"
uv run uvicorn main:app --port 8000 &
BACKEND_PID=$!
# Start frontend
echo "Starting frontend on http://localhost:5173 ..."
cd "$ROOT/aspectt-frontend"
npx vite dev --port 5173 &
FRONTEND_PID=$!
echo ""
echo "ASPECTT is running:"
echo " Frontend → http://localhost:5173"
echo " Backend → http://localhost:8000"
echo " API docs → http://localhost:8000/docs"
echo ""
echo "Press Ctrl+C to stop."
wait