@echo off chcp 65001 >nul 2>&1 title CareerBot Server cd /d "%~dp0" echo ============================================ echo CareerBot - Starting Server echo ============================================ echo. :: Check if port 8000 is already in use netstat -ano | findstr ":8000.*LISTENING" >nul 2>&1 if %errorlevel%==0 ( echo [!] Port 8000 is already in use. Run stop.bat first. echo. pause exit /b 1 ) :: Check if database exists, if not run init if not exist "careerbot.db" ( echo [*] First run detected, initializing database... python init_data.py if %errorlevel% neq 0 ( echo [X] Database initialization failed! pause exit /b 1 ) echo [OK] Database initialized. echo. ) :: Start uvicorn echo [*] Starting CareerBot on http://localhost:8000 echo [*] Admin panel: http://localhost:8000/admin/login echo [*] Press Ctrl+C to stop the server echo. python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload