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.
81 lines
2.1 KiB
Batchfile
81 lines
2.1 KiB
Batchfile
@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
|