-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstart.sh
More file actions
40 lines (32 loc) · 1.19 KB
/
Copy pathstart.sh
File metadata and controls
40 lines (32 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
#!/usr/bin/env bash
# SatQuery AI — One-Click Standalone Launcher (Linux / macOS)
set -e
echo "=========================================================================="
echo " 🛰️ SATQUERY AI — ONE-CLICK LAUNCHER "
echo "=========================================================================="
# Activate virtual environment if present
if [ -d ".venv" ]; then
echo "🔄 Activating virtual environment..."
source .venv/bin/activate
fi
# Pre-seed demonstration datasets
echo "📁 Pre-seeding demonstration datasets..."
python3 satquery-ai/scripts/seed_demo_data.py
# Ensure frontend dependencies are installed
if [ ! -d "satquery-ai/apps/web/node_modules" ]; then
echo "📦 Installing frontend dependencies..."
(cd satquery-ai/apps/web && npm install)
fi
# Launch FastAPI Backend
echo "🚀 Launching FastAPI Backend on http://127.0.0.1:8001..."
cd satquery-ai
uvicorn backend.main:app --host 0.0.0.0 --port 8001 &
BACKEND_PID=$!
cd ..
# Launch Next.js Web Console
echo "🖥️ Launching Next.js Mission Workspace on http://localhost:3000..."
cd satquery-ai/apps/web
npm run dev &
FRONTEND_PID=$!
trap "kill $BACKEND_PID $FRONTEND_PID" EXIT
wait