Delivered remotely for a business based in Auckland, New Zealand. Names withheld by agreement.
Project Overview
A K-12 school's operational clock compresses its hardest workload into two narrow windows: 08:45–09:15 every morning when homeroom teachers submit attendance and front offices chase unexplained absences, and the final two weeks of each term when every educator compiles narrative report cards simultaneously. School networks in Auckland needed software that respected those real-world rhythms rather than forcing staff to juggle disconnected spreadsheets, legacy desktop registers, and ad-hoc parent messaging apps.
We engineered a comprehensive school management platform on Java, Spring Boot, and React. Designed as a well-structured modular monolith, the platform unifies student demographics, custody-aware guardian portals, daily attendance, timetable substitution, pastoral incident logs, and achievement reporting inside a strongly typed, auditable system.
Campus Administration Gaps
District principals and office managers identified four recurring breakdowns in older school suites:
- Custody & privacy blind spots: Generic parent portals sent blanket announcements or shared medical flags with restricted contacts because relationships were modeled as flat email lists.
- Morning office bottlenecks: Unexplained-absence alerts failed to account for sickbay sign-ins or music-lesson withdrawals recorded minutes earlier by front-desk staff.
- Painful relief-teacher coordination: When three teachers called in sick at 07:00, finding qualified cover without double-booking labs required frantic manual wall-chart edits.
- Error-prone statutory roll returns: Generating Ministry attendance and roll-return exports demanded days of manual data-cleaning scripts before submission deadlines.
Architectural Strategy
We chose strict domain boundaries inside a Spring Boot modular monolith paired with a task-oriented React interface. Rather than splitting student records, attendance, and grading into premature network-bound microservices that complicate cross-domain transactions, Java packages enforce clear module APIs while sharing ACID PostgreSQL transactions.
Every interaction revolves around temporal accuracy: student enrollments, homeroom assignments, timetable cycles, and guardian custody flags carry effective date ranges. Historical report cards and statutory roll returns remain reproducible years later even after students graduate or shift classrooms.
Core Capabilities
- Instant Roll Call & Unexplained-Absence Reconciliation: Teachers mark presence in seconds from React, merging live front-office late slips, sickbay check-ins, and excursion lists before triggering parent notifications.
- Custody-Aware Guardian Portal: Parents view attendance summaries, approve digital excursion consent slips, book parent-teacher conferences, and access term reports strictly scoped by legal relationship permissions.
- Timetable & Daily Relief Planner: Highlights free rooms, subject-qualified cover staff, and split-cohort conflicts so coordinators resolve morning teacher absences smoothly.
- Pastoral Care & Medical Action Plans: Separates sensitive counselor observations and allergy alerts from general academic records using granular staff role gates.
- Term Reporting & Statutory Exports: Validates missing teacher comments ahead of print deadlines, compiles branded PDF report packs, and formats clean Ministry compliance returns.
Technical Architecture
React renders role-tailored views for educators, office staff, and guardians, authenticating via Keycloak OIDC tokens against stateless Spring Boot REST controllers. Spring Data JPA repositories enforce tenant context filters, while Hibernate Envers records full revision history on sensitive tables such as medical flags, grades, and custody permissions. Redis accelerates read-heavy active timetable lookups and coordinates asynchronous notification and PDF rendering pipelines.
Flow: React Teacher/Guardian UI → Keycloak OIDC → Spring Boot REST Controllers & Security Guards → Domain Modules (Attendance, Timetable, Pastoral, Grading) → PostgreSQL + Envers Audit Ledger → Redis Event Dispatch → Notification & PDF Workers
For relief-teacher allocation and term report batch runs, heavy computations execute on dedicated Spring worker threads decoupled from interactive classroom roll-call endpoints.
Technology Stack
| Category | Technology detail |
|---|---|
| Backend Platform | Java 21 with Spring Boot 3 modular domain services and strict DTO boundaries |
| Frontend Portal | React + TypeScript SPA with offline-capable roll call and parent communication views |
| Relational Store | PostgreSQL with row-level school scoping and Flyway versioned schema migrations |
| Identity & SSO | Keycloak OIDC supporting staff Google/Microsoft logins and guardian MFA |
| Cache & Events | Redis caching active timetables and dispatching absence-notification alerts |
| Reporting Engine | Java Jasper/PDF rendering workers compiling end-of-term student achievement reports |
| Constraint Solver | Java scheduling module resolving room capacities, teacher loads, and split electives |
| Statutory Exports | Schema-validated XML/CSV pipelines for Ministry of Education roll returns |
| Audit & Compliance | Hibernate Envers revision tables tracking custody, medical, and grade changes |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Premature microservices would complicate atomic attendance-and-pastoral workflows | Built a Spring Boot modular monolith with package-level boundaries and Flyway migrations, simplifying ACID joins while keeping modules cleanly extractable later. |
| Offline classroom marks conflicted with front-office late sign-ins | Applied deterministic event-precedence rules (office physical sign-in overrides unverified class absence) and surfaced conflict flags cleanly for office confirmation. |
| Broad parent-portal queries risked exposing restricted pastoral or custody data | Enforced attribute-based Spring Security checks against directional guardian relationship edges and split sensitive pastoral notes into separate projection endpoints. |
| End-of-term PDF generation for whole campuses spiked JVM memory | Streamed report compilation through bounded worker queues using paginated data fetches and chunked template rendering to keep API latency untouched. |
Security & Student Data Protection
Student records encompass minors' health conditions, learning support plans, custody court orders, and disciplinary notes. Keycloak enforces MFA for staff accounts and separates guardian authentication flows, while Spring Security verifies both campus tenant membership and role-scoped data projections on every endpoint.
Sensitive pastoral counseling entries use separate permission authorities invisible even to general teaching staff unless explicitly shared on a need-to-know basis. Hibernate Envers preserves tamper-evident change histories showing exactly who modified an attendance code, grade entry, or pickup authorization and when.
Performance & Scale
School traffic is intensely spiky rather than evenly distributed across 24 hours. Pre-warming active daily timetables and class rosters in Redis before the first bell eliminates heavy relational joins during morning roll call.
On report-card release afternoons, when thousands of guardians open links within minutes of an email blast, pre-rendered PDF artifacts served via signed object-storage URLs shield the Spring Boot API and PostgreSQL primary from download storms.
Operational Outcomes
Consolidating daily campus operations and parent communications onto a cohesive Java, Spring Boot, and React stack gave schools predictable control over their busiest hours:
- Calmer morning office routines: Real-time merging of classroom rolls, sickbay logs, and excursion rosters prevents false-alarm absence texts to parents.
- Confident safeguarding compliance: Explicit custody-edge enforcement ensures every staff member and parent sees strictly authorized student details.
- Faster relief-cover allocation: Conflict-checked teacher and room availability replaces ad-hoc morning phone trees.
- Clean end-of-term reporting: Pre-submission completeness checks and statutory export validators turn end-of-term administration into a repeatable workflow.