Skip to content
All projects
Management

ClassRoot

DjangoNext.jsTypeScriptPostgreSQLCloudflare WorkersDocker
Short walkthrough, recorded on sample data.

Overview

Multi-school management platform for high schools in Liberia, built first for Sacred Heart Catholic High School, Monrovia. One deployment, a private database schema per school. It covers marks, report cards, attendance that keeps working offline, timetables, fees, and parent messaging.

The problem

Liberian schools run marks, attendance, report cards and fees on paper and spreadsheets. Connectivity is unreliable and most teachers work from a phone, so an online-only system would lose data the moment the network drops.

My role

Full-stack design, development & operations

How it works

  1. A school registers. It applies on the platform site and the platform owner approves it. ClassRoot then provisions a private database schema and the school's own address, and puts its name, logo and currency on every page and receipt.
  2. The school brings its data. Classes, pupils, teachers, guardians and fees come in from Excel or are entered on screen. A setup checklist covers grading scale, marking periods, timetable and fee structures.
  3. Teachers record, even offline. Teachers take per-subject registers and enter marks on a phone. Without a connection, entries are saved on the device and sent when it comes back, and any conflicts go to review.
  4. Results go through approval. Teachers submit marks, heads of department review them, and the principal approves and publishes. Averages, grades and class positions are calculated automatically, and report cards print for a whole class at once.
  5. The office runs finance. Staff raise fees by class, record payments and issue receipts with verification codes, all on an append-only ledger with family statements.
  6. Families follow along. Guardians see every child's marks, attendance, homework and balance in one place. They also get announcements, message their child's teachers, and receive report cards once the school releases them.

Key features

  • Schools self-register; each gets its own address, branding and isolated data
  • Results workflow (submit, review, approve, publish) with report cards and transcripts as PDF
  • Offline marks and attendance entry that syncs later, with conflict review
  • Timetable versions with rooms, teacher unavailability and time-boxed cover
  • Fees, invoices and receipts with verification codes on an append-only ledger
  • Teacher ↔ guardian messaging, announcements and per-topic notification preferences
  • Explainable early-warning rules set by the school: no scores, no automated decisions

Architecture

  1. Next.js 15 PWA on Cloudflare Workers (school sites + platform site)
  2. Django 5 / DRF API on Render: JWT in HttpOnly cookies, capability-based RBAC
  3. PostgreSQL on Neon via django-tenants (one schema per school)
  4. Cloudflare R2 for files and nightly backups; GitHub Actions for scheduled jobs

Key decisions

A schema per school, not a school_id column

Isolation lives in Postgres rather than in every query. Every token carries its school and is refused elsewhere, since user ids restart at 1 in each schema. Pooled connections are refused because a session search_path would leak between requests.

Offline-first where teachers work

Registers and mark sheets queue in IndexedDB and replay on reconnect. Queued work belongs to the signed-in user, so one teacher's register can never be sent as another's on a shared phone. A Playwright test marks a register offline and asserts it reached the server.

Releases that can't outrun migrations

The health endpoint reports the deployed commit and blocks a release whose migrations have not run.

Results & engineering

  • ~1,800 backend tests and 95 frontend test files, plus Playwright end-to-end tests against a real API
  • CI runs Backend, Frontend, E2E and Security jobs on every pull request
  • 560+ commits and 200+ pull requests since June 2026, with load testing and pilot validation ahead of rollout
  • Nightly database and file backups to private storage, with a documented restore

Interested in work like this?

Let's talk about building something for your team.

Get in touch