courseworx/bounce.bat
mmabdalla 5477297914 v2.0.2 - Complete Plugin Architecture System and Multi-Currency Implementation
Major Features Added:
- Complete Plugin Architecture System with financial plugin
- Multi-currency support with exchange rates
- Course type system (online, classroom, hybrid)
- Attendance tracking and QR code scanning
- Classroom sessions management
- Course sections and content management
- Professional video player with authentication
- Secure media serving system
- Shopping cart and checkout system
- Financial dashboard and earnings tracking
- Trainee progress tracking
- User notes and assignments system

Backend Infrastructure:
- Plugin loader and registry system
- Multi-currency database models
- Secure media middleware
- Course access middleware
- Financial plugin with payment processing
- Database migrations for new features
- API endpoints for all new functionality

Frontend Components:
- Course management interface
- Content creation and editing
- Section management with drag-and-drop
- Professional video player
- QR scanner for attendance
- Shopping cart and checkout flow
- Financial dashboard
- Plugin management interface
- Trainee details and progress views

This represents a major evolution of CourseWorx from a basic LMS to a comprehensive educational platform with plugin architecture.
2025-09-14 04:20:37 +03:00

81 lines
2.1 KiB
Batchfile
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo.
echo ========================================
echo CourseWorx - Bounce (Restart)
echo ========================================
echo.
REM Check if Node.js is installed
node --version >nul 2>&1
if %errorlevel% neq 0 (
echo ERROR: Node.js is not installed or not in PATH
echo Please install Node.js from https://nodejs.org/
pause
exit /b 1
)
echo 🔄 Bouncing CourseWorx servers...
echo.
REM Step 1: Kill all Node.js processes
echo 📋 Step 1: Stopping all Node.js processes...
tasklist /FI "IMAGENAME eq node.exe" 2>NUL | find /I /N "node.exe">NUL
if "%ERRORLEVEL%"=="0" (
echo Found Node.js processes. Stopping them...
taskkill /F /IM node.exe >nul 2>&1
echo ✅ All Node.js processes stopped
) else (
echo No Node.js processes found
)
REM Step 2: Wait a moment for ports to clear
echo.
echo 📋 Step 2: Waiting for ports to clear...
timeout /t 3 /nobreak >nul
echo ✅ Port clearing wait completed
REM Step 3: Check if ports are now free
echo.
echo 📋 Step 3: Checking port availability...
netstat -an | findstr ":5000" >nul 2>&1
if %errorlevel% equ 0 (
echo ⚠️ Port 5000 is still in use
echo Attempting to force clear...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":5000"') do (
taskkill /F /PID %%a >nul 2>&1
)
timeout /t 2 /nobreak >nul
)
netstat -an | findstr ":3000" >nul 2>&1
if %errorlevel% equ 0 (
echo ⚠️ Port 3000 is still in use
echo Attempting to force clear...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":3000"') do (
taskkill /F /PID %%a >nul 2>&1
)
timeout /t 2 /nobreak >nul
)
echo ✅ Port check completed
echo.
REM Step 4: Start the servers
echo 📋 Step 4: Starting CourseWorx servers...
echo.
echo 📱 Frontend will be available at: http://localhost:3000
echo 🔧 Backend API will be available at: http://localhost:5000
echo.
echo 💡 To stop the application, press Ctrl+C
echo.
REM Start both frontend and backend
npm run start
if %errorlevel% neq 0 (
echo ❌ Error starting CourseWorx
echo Please check the error messages above and try again
pause
exit /b 1
)
pause