@echo off chcp 65001 >nul title ETest Backend Test color 0A echo ======================================== echo ETest Backend Test (Remote DB) echo ======================================== echo. :: Check Python python --version >nul 2>&1 if %errorlevel% neq 0 ( echo [!] Python not found echo [*] Please install Python 3.10+ pause exit /b 1 ) echo [OK] Python found echo. :: Set environment echo [*] Setting up environment... cd /d C:\PPRO\ETest-Vue-FastAPI\ruoyi-fastapi-backend :: Check virtual environment if not exist venv ( echo [*] Creating virtual environment... python -m venv venv ) echo [*] Activating virtual environment... call venv\Scripts\activate.bat :: Check dependencies echo [*] Checking dependencies... pip show fastapi >nul 2>&1 if %errorlevel% neq 0 ( echo [*] Installing dependencies... pip install -r requirements.txt ) echo [OK] Dependencies ready echo. :: Start backend echo [*] Starting backend server... echo [*] Database: 123.57.81.127:3306 echo [*] API Docs: http://localhost:9099/docs echo. python server.py :: If failed if %errorlevel% neq 0 ( echo. echo [!] Backend failed to start echo [*] Check error messages above pause )