How muzammilalamx23/edunex works
EduNex is a gamified learning platform with course authoring and study, assessments, community, and an in-browser coding playground. Users browse courses, study lessons, complete quizzes or coding missions, and earn progress rewards; administrators manage course content. The React app calls an Express API backed by MongoDB, while playground execution can run through a Redis/BullMQ worker and return live Socket.IO events. The graph preserves documented capabilities, but several route and page implementations were not sampled, so some links rely on README documentation rather than inspected call sites.
Main entry points: App.jsx Route application · api.js API client · playgroundWorker.js Execution worker · CoursePlayer.jsx Course player
Components 27
Web application
- Route application
client/src/App.jsx - Auth context
client/src/context/AuthContext.jsx - API client
client/src/utils/api.js - Navigation
client/src/components/Navbar.jsx
Learning product
- Learner dashboard
client/src/pages/Dashboard.jsx - Course catalog
client/src/pages/Courses.jsx - Course player
client/src/pages/CoursePlayer.jsx - Quiz engine
client/src/components/assessment/QuizEngine.jsx - Course community
client/src/pages/Community.jsx - Course administration
client/src/pages/AdminCreateCourse.jsx
Code playground
- Playground editor
client/src/pages/EnginePlayground.jsx - AI mentor panel
client/src/components/playground/AIMentorPanel.jsx - Execution worker
server/workers/playgroundWorker.js - Job queue
server/queues/playgroundQueue.js - Code sandbox
server/services/sandboxService.js - Live event service
server/services/socketService.js
API and services
- Express application
server/index.js - JWT authentication
server/middleware/auth.js - Playground routes
server/routes/playgroundRoutes.js - Playground controller
server/controllers/playgroundController.js - Progress service
server/services/progressService.js
Persistent data
- Course records
server/models/Course.js - User records
server/models/User.js - Progress records
server/models/UserProgress.js - Redis
server/config/redis.js
Other components
- Learner
- Administrator
Connections 29
- Learner → Route application: uses
client/src/App.jsx - Administrator → Route application: uses
client/src/App.jsx - Route application → Auth context: provides auth
client/src/App.jsx - Route application → Learner dashboard: routes to
client/src/App.jsx - Route application → Course catalog: routes to
client/src/App.jsx - Route application → Course player: routes to
client/src/App.jsx - Route application → Course administration: routes to
client/src/App.jsx - Route application → Playground editor: routes to
client/src/App.jsx - Course player → Quiz engine: renders
- Learner → Course community: participates
- Administrator → Course administration: manages courses
README.md - Auth context → API client: requests user
client/src/context/AuthContext.jsx - Playground editor → API client: submits code
client/src/pages/EnginePlayground.jsx - Playground editor → AI mentor panel: renders
client/src/pages/EnginePlayground.jsx - API client → Express application: calls API
README.md - Express application → Playground routes: mounts routes
server/index.js - Playground routes → JWT authentication: requires auth
server/routes/playgroundRoutes.js - Playground routes → Playground controller: dispatches
server/routes/playgroundRoutes.js - Playground controller → Job queue: enqueues jobs
server/controllers/playgroundController.js - Job queue → Redis: uses connection
server/queues/playgroundQueue.js - Execution worker → Code sandbox: executes code
server/workers/playgroundWorker.js - Execution worker → Live event service: streams events
- Execution worker → Progress service: awards mission XP
server/workers/playgroundWorker.js - Progress service → Progress records: reads and writes
server/services/progressService.js - Progress service → Course records: reads lessons
server/services/progressService.js - Learner dashboard → API client: loads learning data
- Course player → API client: loads lessons
- API client → Course records: serves course data
README.md - API client → User records: serves account data
README.md