@echo off
echo ====================================
echo Product Finder Quiz - Flask App
echo ====================================
echo.
echo Checking Python installation...
python --version
if errorlevel 1 (
    echo ERROR: Python is not installed or not in PATH
    echo Please install Python 3.8 or higher
    pause
    exit /b 1
)
echo.
echo Installing dependencies...
pip install -r requirements.txt
if errorlevel 1 (
    echo ERROR: Failed to install dependencies
    pause
    exit /b 1
)
echo.
echo Starting Flask application...
echo.
echo Application will be available at:
echo http://localhost:8080/quiz
echo.
echo Press Ctrl+C to stop the server
echo.
python app.py
pause
