How kumarprakhar14/school_erp works
SchoolChakra is a multi-tenant school-management SaaS for school staff, students, and platform administrators. Users sign in and are routed to role-appropriate dashboards and features; school operations cover academics, attendance, assignments, notices, and fee management, while platform administrators manage schools, plans, flags, and billing. The React client calls an Express API, whose routes dispatch product capabilities and whose backend accesses PostgreSQL through Prisma. The README documents additional capabilities not fully sampled; those branches are shown without asserting unsampled internal calls.
Main entry points: index.routes.js API route registry · db.js PostgreSQL via Prisma · fee.routes.js Fee endpoints · api.js HTTP client
Components 25
Web application
- Role-based UI
frontend/src/App.jsx - Session and profile
frontend/src/store/authStore.js - HTTP client
frontend/src/lib/api.js - Fee workspace
frontend/src/pages/Fees.jsx
API and access
- Express API
backend/src/app.js - API route registry
backend/src/routes/index.routes.js - Fee endpoints
backend/src/routes/fee.routes.js - Authentication and roles
backend/src/middlewares/authMiddleware.js - School validity
backend/src/middlewares/schoolMiddleware.js - PostgreSQL via Prisma
backend/src/utils/db.js
School operations
- User management
backend/src/controllers/userController.js - Academic structure
backend/src/controllers/classController.js - Attendance
backend/src/controllers/attendanceController.js - Assignments
backend/src/controllers/assignmentController.js - Timetables
backend/src/controllers/timeTableController.js - Academic calendar
backend/src/services/academicCalendarService.js - Notices and alerts
backend/src/services/notificationService.js - Bulk imports
backend/src/services/importService.js - School-wide search
backend/src/services/searchService.js
Fees and reporting
- Invoices and payments
backend/src/controllers/feeController.js - Financial and attendance reports
backend/src/services/reports/ReportEngine.js
Platform administration
- School lifecycle
backend/src/controllers/schoolController.js - Plans and features
backend/src/controllers/plans.controller.js - Subscription billing
backend/src/services/billing/paymentProcessing.service.js
Other components
- School users
Connections 30
- School users → Role-based UI: uses
- Role-based UI → Session and profile: checks session
frontend/src/App.jsx - Session and profile → HTTP client: requests profile
frontend/src/store/authStore.js - School users → Fee workspace: manages fees
- Fee workspace → HTTP client: loads fee data
frontend/src/pages/Fees.jsx - HTTP client → Express API: sends requests
- Express API → API route registry: mounts routes
backend/src/app.js - API route registry → Fee endpoints: mounts fees
backend/src/routes/index.routes.js - Fee endpoints → Authentication and roles: authenticates
backend/src/routes/fee.routes.js - Fee endpoints → School validity: checks school
backend/src/routes/fee.routes.js - Fee endpoints → Invoices and payments: dispatches
backend/src/routes/fee.routes.js - API route registry → School lifecycle: routes school admin
backend/src/routes/index.routes.js - API route registry → User management: routes user admin
backend/src/routes/index.routes.js - API route registry → Academic structure: routes classes
backend/src/routes/index.routes.js - API route registry → Attendance: routes attendance
backend/src/routes/index.routes.js - API route registry → Assignments: routes assignments
backend/src/routes/index.routes.js - API route registry → Timetables: routes timetables
backend/src/routes/index.routes.js - API route registry → Academic calendar: routes calendar
backend/src/routes/index.routes.js - API route registry → Notices and alerts: routes notifications
backend/src/routes/index.routes.js - API route registry → Bulk imports: routes imports
backend/src/routes/index.routes.js - API route registry → Financial and attendance reports: routes reports
backend/src/routes/index.routes.js - API route registry → School-wide search: routes search
backend/src/routes/index.routes.js - API route registry → Plans and features: routes plans and flags
backend/src/routes/index.routes.js - API route registry → Subscription billing: routes billing
backend/src/routes/index.routes.js - Invoices and payments → PostgreSQL via Prisma: reads and writes
backend/src/controllers/feeController.js - Authentication and roles → PostgreSQL via Prisma: checks user
backend/src/middlewares/authMiddleware.js - School validity → PostgreSQL via Prisma: checks school
backend/src/middlewares/schoolMiddleware.js - User management → PostgreSQL via Prisma: manages records
backend/src/controllers/userController.js - School lifecycle → PostgreSQL via Prisma: manages schools
backend/src/controllers/schoolController.js - Fee workspace → HTTP client: submits changes
frontend/src/pages/Fees.jsx