-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
28 lines (23 loc) · 719 Bytes
/
Copy pathrun.sh
File metadata and controls
28 lines (23 loc) · 719 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
#!/bin/bash
echo "=================================="
echo "Intelligent Coding Assistant"
echo "=================================="
echo ""
HOST="${HOST:-0.0.0.0}"
PORT="${PORT:-8000}"
# Check if database exists
if [ ! -f "data/coding_assistant.db" ]; then
echo "📦 Database not found. Initializing with sample data..."
python load_sample_data.py
echo ""
fi
echo "🚀 Starting FastAPI server..."
echo "📍 API: http://localhost:${PORT}"
echo "📍 Docs: http://localhost:${PORT}/docs"
echo "📍 Frontend: Open frontend/index.html in your browser"
echo ""
echo "Demo credentials:"
echo " Email: demo@example.com"
echo " Password: demo123"
echo ""
HOST="${HOST}" PORT="${PORT}" python -m src.main