-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
37 lines (32 loc) · 890 Bytes
/
start.bat
File metadata and controls
37 lines (32 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
33
34
35
36
37
@echo off
echo ========================================
echo CodeRAG - Codebase RAG System
echo ========================================
echo.
:: Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
pause
exit /b 1
)
:: Install dependencies if needed
echo Checking dependencies...
pip show fastapi >nul 2>&1
if errorlevel 1 (
echo Installing dependencies...
pip install fastapi uvicorn pydantic pydantic-settings rank-bm25 numpy tiktoken httpx pyyaml gitpython rich --quiet
)
:: 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 /d %~dp0
python -m uvicorn src.api.main:app --host 0.0.0.0 --port 8000 --reload
pause