-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
32 lines (28 loc) · 890 Bytes
/
start.sh
File metadata and controls
32 lines (28 loc) · 890 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
#!/bin/bash
echo "========================================"
echo "CodeRAG - Codebase RAG System"
echo "========================================"
echo
# Check Python
if ! command -v python3 &> /dev/null; then
echo "ERROR: Python 3 is not installed"
exit 1
fi
# Install dependencies if needed
echo "Checking dependencies..."
if ! python3 -c "import fastapi" 2>/dev/null; then
echo "Installing dependencies..."
pip3 install fastapi uvicorn pydantic pydantic-settings rank-bm25 numpy tiktoken httpx pyyaml gitpython rich --quiet
fi
# Start the server
echo
echo "Starting CodeRAG server..."
echo
echo " Frontend: http://localhost:8000"
echo " API Docs: http://localhost:8000/docs"
echo
echo "Press Ctrl+C to stop the server"
echo "========================================"
echo
cd "$(dirname "$0")"
python3 -m uvicorn src.api.main:app --host 0.0.0.0 --port 8000 --reload