How riteshraj1064/examify works
This repository implements an educational platform: learners use its API to browse study content, take tests, ask doubts, and access support; administrators manage platform content and operations. Separate services handle subscriptions and notifications. The graph preserves the major documented-in-code feature areas and the payment-to-notification flow. Evidence is limited to the supplied excerpts and SOURCE INDEX; the API gateway’s routing behavior and several unsampled feature internals are therefore not inferred.
Main entry points: app.js Platform API · authMiddleware.js Authentication · paymentController.js Payment API · paymentNotificationService.js Payment notifications
Components 26
Platform API
- Platform API
server/src/app.js - Authentication
server/src/middleware/authMiddleware.js - API responses
server/src/utils/apiResponse.js - API gateway
api-gateway/index.js - Analytics
server/src/controllers/analyticsController.js - MongoDB
Learning
- Study content
server/src/controllers/questionController.js - Study materials
server/src/controllers/studyMaterialController.js - Daily tests
server/src/controllers/dailyTestController.js - Live tests
server/src/controllers/liveTestController.js - Test attempts
server/src/controllers/testAttemptController.js
Community & Support
- Doubt discussions
server/src/controllers/doubtController.js - Support & FAQs
server/src/controllers/supportController.js - AI doubt help
server/src/controllers/aiDoubtController.js
Payments
- Payment API
payment-server/src/controllers/paymentController.js - Payment routes
payment-server/src/routes/paymentRoutes.js - Payment records
payment-server/src/models/Transaction.js - Payment notifications
payment-server/src/services/paymentNotificationService.js
Notifications
- MQTT broker
- Notification service
notification-server/index.js - MQTT dispatch
notification-server/mqttBroker.js - Push delivery
notification-server/services/pushService.js - Email delivery
notification-server/services/emailService.js - Token cleanup
notification-server/services/tokenService.js
Other components
- Learner
- Administrator
Connections 25
- Learner → Platform API: uses API
server/src/app.js - Administrator → Platform API: uses API
server/src/app.js - Platform API → Authentication: authenticates
server/src/app.js - Platform API → Study content: routes content
server/src/app.js - Platform API → Study materials: routes materials
server/src/app.js - Platform API → Daily tests: routes daily tests
server/src/app.js - Platform API → Live tests: routes live tests
server/src/app.js - Platform API → Test attempts: routes attempts
server/src/app.js - Platform API → Doubt discussions: routes doubts
server/src/app.js - Platform API → Support & FAQs: routes support
server/src/app.js - Platform API → AI doubt help: routes AI help
server/src/app.js - Platform API → Analytics: routes analytics
server/src/app.js - Authentication → API responses: returns errors
server/src/middleware/authMiddleware.js - Authentication → MongoDB: reads users
server/src/middleware/authMiddleware.js - Doubt discussions → API responses: formats responses
server/src/controllers/doubtController.js - Support & FAQs → API responses: formats responses
server/src/controllers/supportController.js - Payment routes → Payment API: dispatches requests
payment-server/src/routes/paymentRoutes.js - Payment API → Payment records: records transactions
payment-server/src/controllers/paymentController.js - Payment API → Payment notifications: dispatches events
payment-server/src/controllers/paymentController.js - Payment notifications → MQTT broker: publishes messages
payment-server/src/services/paymentNotificationService.js - Payment notifications → Notification service: connects broker
- Notification service → MQTT dispatch: starts broker handler
notification-server/index.js - MQTT dispatch → Push delivery: dispatches push
notification-server/mqttBroker.js - MQTT dispatch → Email delivery: dispatches email
notification-server/mqttBroker.js - Push delivery → Token cleanup: cleans invalid tokens
notification-server/services/pushService.js