How mcartv/smart-pdm works
SMaRT-PDM is a scholarship-management platform with administrative and partner portals, a student mobile application, separate APIs, and a Raspberry Pi OCR station. The principal workflow runs from student registration and application submission through staff review and endorsement, then scholar monitoring, renewals, Return of Obligations, payouts, and reporting. The graph preserves the documented product branches, while sampled code supports only selected application, messaging, and OCR relationships. Other links are omitted where the available excerpts do not establish the runtime connection.
Main entry points: src Admin portals · applicationController.js Application review API · messageController.js Admin messaging · server.js Student API
Components 25
User portals
- Admin portals
admin/frontend/src - Student app
mobile/frontend
Administrative API
- Admin API server
admin/backend/server/server.js - Application routes
admin/backend/routes/applicationRoutes.js - Application review API
admin/backend/controllers/applicationController.js - Application processing
admin/backend/services/applicationService.js - Admin messaging
admin/backend/controllers/messageController.js - Message services
admin/backend/services/messageService.js - Realtime events
admin/backend/utils/socketEvents.js - Student event relay
admin/backend/services/studentRealtimeRelayService.js - OCR review API
admin/backend/controllers/ocrController.js - Scholar monitoring
admin/backend/controllers/scholarController.js - Renewals
admin/backend/controllers/renewalController.js - RO compliance
admin/backend/controllers/roController.js - Payout management
admin/backend/controllers/payoutController.js - Reporting
admin/backend/services/reportService.js
Student API
- Student API
mobile/backend/src/server.js - Student applications
mobile/backend/src/services/applicationService.js - Student messaging
mobile/backend/src/services/messageService.js
OCR station
- Pi capture and OCR
ocr/scanner/main.py - OCR engine
ocr/scanner/extraction/ocr_engine.py
Shared platform
- PostgreSQL
admin/backend/config/db.js - Supabase storage
mobile/backend/src/config/supabase.js
Other components
- Students
- OSFA and partners
Connections 29
- Students → Student app: use
README.md - OSFA and partners → Admin portals: use
README.md - Admin portals → Admin API server: request API
README.md - Student app → Student API: request API
README.md - Admin API server → Application routes: mount routes
admin/backend/server/server.js - Application routes → Application review API: route requests
admin/backend/routes/applicationRoutes.js - Application review API → Application processing: delegate
admin/backend/controllers/applicationController.js - Application review API → Realtime events: emit updates
admin/backend/controllers/applicationController.js - Application review API → Student event relay: relay events
admin/backend/controllers/applicationController.js - Admin messaging → Message services: delegate
admin/backend/controllers/messageController.js - Admin messaging → Realtime events: emit events
admin/backend/controllers/messageController.js - Admin messaging → Student event relay: relay events
admin/backend/controllers/messageController.js - Student API → Student applications: serve requests
- Student API → Student messaging: serve requests
- Student messaging → Admin messaging: relay events
- Pi capture and OCR → OCR engine: process capture
- OSFA and partners → OCR review API: review OCR
README.md - OCR review API → Pi capture and OCR: request capture
- Application processing → PostgreSQL: read and write
- Student applications → PostgreSQL: read and write
- Admin portals → Scholar monitoring: monitor scholars
README.md - Admin portals → Renewals: review renewals
README.md - Admin portals → RO compliance: track compliance
README.md - Admin portals → Payout management: manage payouts
README.md - Admin portals → Reporting: view reports
README.md - Admin portals → Admin messaging: message users
README.md - Admin portals → Application review API: review applications
README.md - Admin portals → OCR review API: review scans
README.md - Supabase storage → Student applications: store records