How shagarchandro/shagar-model-school-college works
SSMS is a browser-based school ERP whose primary workflow is staff signing in, navigating the hash-routed application, and managing school records stored in browser LocalStorage. Its domain spans admissions and student records, fees, attendance, exams and results, and staff and finance; the README also documents portals, library, transport, routine, homework, and other v2 modules. The sampled serverless API adds AI, messaging, health, and online-payment support. Front-end module internals were not sampled, so links to those capabilities are limited to README evidence.
Main entry points: app.js App shell and router · storage.js LocalStorage database · _lib.js API request helpers · js Student and parent portals
Components 26
Web application
- Login interface
login.html - Demo authentication
assets/js/auth.js - App shell and router
assets/js/app.js - LocalStorage database
assets/js/storage.js
School operations
- Dashboard
assets/js/dashboard.js - Admissions and students
assets/js/students.js - Fees and collection
assets/js/fees.js - Attendance
assets/js/attendance.js - Exams and results
assets/js/results.js - Staff and payroll
assets/js/staff.js - Finance and reports
assets/js/reports.js
Advanced ERP
- Student and parent portals
assets/js - Teacher portal
assets/js - Routine and homework
assets/js - Library and transport
assets/js - System customization
assets/js
Serverless services
- API request helpers
api/_lib.js - AI chat endpoint
api/ai/chat.js - SMS endpoint
api/sms/send.js - WhatsApp endpoint
api/whatsapp/send.js - Service health
api/health.js
Online payments
- Payment initialization
api/payments/init.js - Gateway adapters
api/payments/_gw.js - Gateway return callback
api/payments/ipn.js - Payment verification
api/payments/verify.js
Other components
- School user
Connections 39
- School user → Login interface: signs in
README.md - Login interface → Demo authentication: authenticates with
README.md - Demo authentication → App shell and router: enters app
- School user → App shell and router: navigates pages
README.md - App shell and router → Dashboard: routes to
README.md - App shell and router → Admissions and students: routes to
README.md - App shell and router → Fees and collection: routes to
README.md - App shell and router → Attendance: routes to
README.md - App shell and router → Exams and results: routes to
README.md - App shell and router → Staff and payroll: routes to
README.md - App shell and router → Finance and reports: routes to
README.md - App shell and router → Student and parent portals: routes to
README.md - App shell and router → Teacher portal: routes to
README.md - App shell and router → Routine and homework: routes to
README.md - App shell and router → Library and transport: routes to
README.md - App shell and router → System customization: routes to
README.md - Dashboard → LocalStorage database: reads records
- Admissions and students → LocalStorage database: stores records
- Fees and collection → LocalStorage database: stores records
- Attendance → LocalStorage database: stores records
- Exams and results → LocalStorage database: stores records
- Staff and payroll → LocalStorage database: stores records
- Finance and reports → LocalStorage database: reads records
- Student and parent portals → LocalStorage database: reads records
- Teacher portal → LocalStorage database: reads records
- Routine and homework → LocalStorage database: stores records
- Library and transport → LocalStorage database: stores records
- System customization → LocalStorage database: stores settings
README.md - AI chat endpoint → API request helpers: uses handlers
api/ai/chat.js - SMS endpoint → API request helpers: uses handlers
api/sms/send.js - WhatsApp endpoint → API request helpers: uses handlers
api/whatsapp/send.js - Service health → API request helpers: uses handler
api/health.js - Payment initialization → API request helpers: uses handler
api/payments/init.js - Payment verification → API request helpers: uses handler
api/payments/verify.js - Payment initialization → Gateway adapters: starts checkout
api/payments/init.js - Payment verification → Gateway adapters: verifies payment
api/payments/verify.js - Gateway return callback → Student and parent portals: redirects to fees
api/payments/ipn.js - Student and parent portals → Payment initialization: requests checkout
- Student and parent portals → Payment verification: requests verification