-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathstart_webui.bat
More file actions
48 lines (41 loc) · 1.23 KB
/
start_webui.bat
File metadata and controls
48 lines (41 loc) · 1.23 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
41
42
43
44
45
46
47
48
@echo off
echo ===============================================
echo RefChecker Web UI - Startup Script
echo ===============================================
echo.
REM Check if ANTHROPIC_API_KEY is set
if "%ANTHROPIC_API_KEY%"=="" (
echo ERROR: ANTHROPIC_API_KEY environment variable is not set!
echo.
echo Please set it first:
echo set ANTHROPIC_API_KEY=your_api_key_here
echo.
pause
exit /b 1
)
echo Starting Backend Server...
echo.
start "RefChecker Backend" cmd /k ".venv\Scripts\python.exe -m uvicorn backend.main:app --host 0.0.0.0 --port 8000"
echo Waiting for backend to start...
timeout /t 5 /nobreak > nul
echo.
echo Starting Frontend Server...
echo.
start "RefChecker Frontend" cmd /k "cd web-ui && npm run dev"
echo.
echo ===============================================
echo Both servers starting...
echo.
echo Backend: http://localhost:8000
echo Frontend: http://localhost:5173
echo.
echo Open http://localhost:5173 in your browser
echo ===============================================
echo.
echo Press any key to stop both servers...
pause > nul
taskkill /FI "WindowTitle eq RefChecker Backend*" /T /F > nul 2>&1
taskkill /FI "WindowTitle eq RefChecker Frontend*" /T /F > nul 2>&1
echo.
echo Servers stopped.
pause