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.
33 lines
No EOL
894 B
JavaScript
33 lines
No EOL
894 B
JavaScript
module.exports = {
|
|
webpack: {
|
|
configure: (webpackConfig) => {
|
|
// Fix for webpack dev server allowedHosts issue
|
|
if (webpackConfig.devServer) {
|
|
webpackConfig.devServer.allowedHosts = 'all';
|
|
}
|
|
return webpackConfig;
|
|
},
|
|
},
|
|
devServer: {
|
|
allowedHosts: 'all',
|
|
host: '0.0.0.0',
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:5000',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
logLevel: 'debug',
|
|
onProxyReq: (proxyReq, req, res) => {
|
|
// Ensure proper content-type headers
|
|
if (req.body) {
|
|
const bodyData = JSON.stringify(req.body);
|
|
proxyReq.setHeader('Content-Type', 'application/json');
|
|
proxyReq.setHeader('Content-Length', Buffer.byteLength(bodyData));
|
|
proxyReq.write(bodyData);
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|