How ahosan83/project250 works
This is a role-based school management system: browser users work through a plain HTML/JavaScript frontend, which uses a Go REST API backed by PostgreSQL. The principal workflow is authenticated access to school operations and records; distinct domains include students/classes, attendance, exams/results, and fees. The README also documents dashboard, notices, HR/payroll, accounts, library, and teacher workflows. Several of those are implemented in the large module handler file, so they are represented as distinct responsibilities sharing that source path. Some route and frontend wiring is not shown in the excerpts.
Main entry points: main.go REST API · db.go Database setup · handlers_dashboard.go Dashboard metrics · handlers_students.go Student records
Components 22
Web frontend
- Role portals
frontend - API client
frontend/js/api.js
API platform
- REST API
backend/main.go - Authentication
backend/handlers_auth.go - JWT middleware
backend/auth.go - Database setup
backend/db.go - PostgreSQL
- School data
backend/models.go
School operations
- Dashboard metrics
backend/handlers_dashboard.go - Student records
backend/handlers_students.go - Teacher workflows
backend/handlers_teachers.go - Class records
backend/handlers_classes.go - Attendance
backend/handlers_attendance.go - Exams and results
backend/handlers_exams.go - Fees
backend/handlers_fees.go - Notices
backend/handlers_notices.go
Administration services
- Security and audit
backend/handlers_modules.go - HR and payroll
backend/handlers_modules.go - Accounts and documents
backend/handlers_modules.go - Library services
backend/handlers_modules.go - Learning support
backend/handlers_modules.go
Other components
- School users
Connections 28
- School users → Role portals: uses
README.md - API client → REST API: requests API
frontend/js/api.js - REST API → Role portals: serves frontend
README.md - REST API → Database setup: initializes
backend/main.go - Database setup → PostgreSQL: connects
README.md - REST API → Authentication: routes auth
- REST API → JWT middleware: protects routes
- REST API → Dashboard metrics: routes dashboard
backend/main.go - REST API → Class records: routes classes
backend/main.go - REST API → Student records: routes students
backend/main.go - REST API → Attendance: routes attendance
backend/main.go - REST API → Exams and results: routes exams
backend/main.go - REST API → Fees: routes fees
backend/main.go - REST API → Teacher workflows: routes teacher workflows
backend/main.go - Dashboard metrics → PostgreSQL: queries metrics
backend/handlers_dashboard.go - Student records → PostgreSQL: reads and writes
backend/handlers_students.go - Class records → PostgreSQL: reads and writes
backend/handlers_classes.go - Attendance → PostgreSQL: reads and writes
backend/handlers_attendance.go - Exams and results → PostgreSQL: reads and writes
backend/handlers_exams.go - Fees → PostgreSQL: reads and writes
backend/handlers_fees.go - Teacher workflows → PostgreSQL: queries records
backend/handlers_teachers.go - Notices → REST API: registered routes
- Security and audit → REST API: registered routes
- HR and payroll → REST API: registered routes
backend/main.go - Accounts and documents → REST API: registered routes
backend/main.go - Library services → REST API: registered routes
backend/main.go - Learning support → REST API: registered routes
- School data → PostgreSQL: models stored data