-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart_windows.bat
More file actions
60 lines (51 loc) · 1.39 KB
/
Copy pathstart_windows.bat
File metadata and controls
60 lines (51 loc) · 1.39 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
50
51
52
53
54
55
56
57
58
59
60
@echo off
title Codeyy (Gemini) - Starting...
echo.
echo ==========================================
echo Codeyy - AI Code Analysis (Gemini)
echo ==========================================
echo.
REM Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python not found.
echo Install from https://python.org and tick "Add to PATH"
pause
exit /b
)
REM Go to backend folder
cd /d "%~dp0backend"
REM Create venv if not exists
if not exist "venv" (
echo Setting up virtual environment...
python -m venv venv
)
REM Activate
call venv\Scripts\activate.bat
REM Install deps
echo Installing dependencies...
pip install -r requirements.txt -q
REM Check API key
if not exist ".env" (
echo.
echo WARNING: backend\.env file does not exist.
echo Creating a template file. You can enter your API key in the browser interface.
echo.
echo GEMINI_API_KEY=YOUR_KEY_HERE> .env
)
REM Check if key is still placeholder
findstr /C:"YOUR_KEY_HERE" .env >nul 2>&1
if not errorlevel 1 (
echo.
echo WARNING: API key in backend\.env is still a placeholder.
echo Please enter your API key directly in the browser interface once it opens.
echo.
)
REM Start server and open browser
echo.
echo Starting Codeyy at http://localhost:8000
echo Press Ctrl+C to stop
echo.
start "" http://localhost:8000
python -m uvicorn main:app --host 0.0.0.0 --port 8000
pause