Spaces:
Sleeping
Sleeping
File size: 1,415 Bytes
3f85869 |
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
REM ============================================================================
REM SmartEyeSsen Backend - ์๋ฒ ์์ ์คํฌ๋ฆฝํธ (Windows)
REM ============================================================================
echo ============================================================
echo SmartEyeSsen Backend Server
echo ============================================================
echo.
REM ๊ฐ์ํ๊ฒฝ ํ์ธ
if exist "venv\Scripts\activate.bat" (
echo [1/3] Activating virtual environment...
call venv\Scripts\activate.bat
) else (
echo [WARNING] Virtual environment not found!
echo Please create one with: python -m venv venv
echo.
)
REM ํ๊ฒฝ ๋ณ์ ํ์ผ ํ์ธ
if not exist ".env" (
echo [WARNING] .env file not found!
echo Please copy .env.example to .env and configure it.
echo.
pause
exit /b 1
)
echo [2/3] Checking dependencies...
pip list | findstr "fastapi" >nul
if errorlevel 1 (
echo [INFO] Installing dependencies...
pip install -r requirements.txt
)
echo [3/3] Starting FastAPI server...
echo.
echo ============================================================
echo Server will start at: http://localhost:8000
echo API Documentation: http://localhost:8000/docs
echo ============================================================
echo.
REM FastAPI ์๋ฒ ์คํ
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
pause
|