@echo off
REM Start Church Song Lyric Backend Server
REM This script starts the Flask backend API

echo ========================================
echo CHURCH APP - BACKEND SERVER
echo ========================================
echo.
echo Starting Flask API server on port 5000...
echo Local Access: http://localhost:5000
echo LAN Access: http://192.168.10.178:5000
echo External Access: http://houseofprayer.ddns.net:5000
echo.
echo Press Ctrl+C to stop the server
echo ========================================
echo.

cd /d "%~dp0backend"

REM Activate virtual environment
call venv\Scripts\activate.bat

REM Start Flask server
python app.py

pause
