@echo off
REM run-frontend.bat - Windows startup script for Channel Frontend.
echo [INFO] Checking if frontend configuration exists...
if not exist Channel-Frontend\.env (
    echo [INFO] Generating Channel-Frontend\.env config...
    (
        echo VITE_API_URL=http://localhost:5000/api/v1
    ) > Channel-Frontend\.env
)

echo [INFO] Installing frontend dependencies...
cd Channel-Frontend
call npm install

echo [INFO] Starting Vite frontend dev server...
call npm run dev
