Primakov Alexandr Alexandrovich 09cdd06307 init
2025-10-12 23:15:09 +03:00

46 lines
1.0 KiB
Batchfile

@echo off
REM AI Review Backend Start Script for Windows
echo 🚀 Starting AI Review Backend...
REM Check if venv exists
if not exist "venv" (
echo 📦 Creating virtual environment...
python -m venv venv
)
REM Activate venv
echo 🔧 Activating virtual environment...
call venv\Scripts\activate.bat
REM Install dependencies
echo 📥 Installing dependencies...
pip install -q -r requirements.txt
REM Check .env
if not exist ".env" (
echo ⚠️ .env file not found!
echo Creating .env from .env.example...
copy .env.example .env
echo.
echo ⚠️ IMPORTANT: Edit .env and set SECRET_KEY and ENCRYPTION_KEY!
echo.
pause
)
REM Check Ollama
echo 🤖 Checking Ollama...
where ollama >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ❌ Ollama not found! Please install from https://ollama.ai/
pause
exit /b 1
)
REM Start server
echo ✅ Starting server on http://localhost:8000
echo 📚 API docs: http://localhost:8000/docs
echo.
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000