-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-backend.bat
More file actions
49 lines (43 loc) · 1.05 KB
/
Copy pathstart-backend.bat
File metadata and controls
49 lines (43 loc) · 1.05 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
49
@echo off
echo ========================================
echo Starting Whiteboard Architect Backend
echo ========================================
echo.
cd backend
echo Checking Python installation...
python --version
if %errorlevel% neq 0 (
echo ERROR: Python is not installed or not in PATH
pause
exit /b 1
)
echo.
echo Checking if .env file exists...
if not exist .env (
echo WARNING: .env file not found!
echo Please create backend/.env with your GEMINI_API_KEY
echo.
echo Example:
echo GEMINI_API_KEY=your_key_here
echo.
pause
)
echo.
echo Installing/Updating dependencies...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo ERROR: Failed to install dependencies
pause
exit /b 1
)
echo.
echo ========================================
echo Starting FastAPI server on port 8000...
echo ========================================
echo.
echo Backend will be available at: http://localhost:8000
echo API Documentation: http://localhost:8000/docs
echo.
echo Press Ctrl+C to stop the server
echo.
python main.py