@echo off
title Nexora MOVE Scrollytelling Server
cd /d "%~dp0"

echo ======================================================
echo   NEXORA MOVE - Launching Scrollytelling Showcase
echo ======================================================
echo.

:: Check if Node is installed
where node >nul 2>nul
if %errorlevel% neq 0 (
    echo [ERROR] Node.js is not found on your system PATH!
    echo Opening index.html directly in your default browser...
    start "" "index.html"
    pause
    exit /b
)

:: Start the server in background and open the browser
start "" http://localhost:3000
node server.js

pause
