@echo off
chcp 65001 >nul
cd /d "%~dp0"
echo ==================================================
echo   OpenKeyHub is starting ...
echo.
echo   Admin panel : http://127.0.0.1:8011
echo   Teacher page: http://127.0.0.1:8011/portal
echo.
echo   A browser will open in a few seconds.
echo   Keep this window OPEN while using OpenKeyHub.
echo   Close this window to stop the service.
echo ==================================================
start "" cmd /c "timeout /t 4 >nul & start http://127.0.0.1:8011"
python\python.exe -m backend.main
echo.
echo OpenKeyHub stopped.
pause >nul
