@echo off
echo 🔄 Restarting Class Generator with clean shutdown...

REM Kill all Node.js processes
echo 🛑 Stopping all Node.js processes...
taskkill /F /IM node.exe /T 2>nul

REM Wait a moment
timeout /t 2 /nobreak >nul

REM Start the server
echo 🚀 Starting fresh server...
cd /d "%~dp0"
node server.js

pause