@echo off
title WhatsApp Web Free QR Engine
cd /d "%~dp0whatsapp-server"

echo =======================================================
echo    WhatsApp Web Free QR Code Engine (Self-Hosted)
echo =======================================================
echo.

if not exist node_modules (
    echo [1/2] Installing dependencies...
    call npm install
)

echo [2/2] Starting WhatsApp Web Server on port 3000...
echo.
node server.js
pause
