@echo off
REM Study Timer Setup Script for Windows
REM Usage: setup.bat

echo Study Timer - Windows Setup
echo ===========================
echo.

REM Check PHP
php -v >nul 2>&1
if errorlevel 1 (
    echo ERROR: PHP is not installed or not in PATH
    exit /b 1
)
echo OK: PHP is installed

echo.
echo Database initialization...
echo Check .env file and run the following command manually:
echo   mysql -u root -p study_timer_db ^< schema\init.sql
echo.

echo.
echo Setup complete!
echo.
echo To start the server, run:
echo   php -S localhost:8000 router.php
echo.
echo Then open in your browser:
echo   http://localhost:8000/public/login.html
echo.

pause
