KM
All projects

SubCover الاحتياط

Every morning a school has to cover absent teachers' lessons within its rules. I turned the school's Excel workbook into a bilingual product that does it in one click, explains every choice, and can be licensed to other schools.

Role
Sole engineer: product, design, build, release
Client
International school, through 3A Technology Solution
Timeline
Nov 2026 – present
Status
Phase 1 (web app) built for the first school
Stack
.NET 10, Blazor Server, MudBlazor, EF Core, SQLite, PostgreSQL, QuestPDF, ClosedXML
Code
Private client code · walkthrough on request

The problem

The school's coordinator covered absences by hand from a large Excel workbook, checking for every period who is free, who has already covered enough lessons this week, and who teaches that class. The same checks had to be repeated every morning.

What I built

  • Day board: add absences (full day, some periods or early dismissal), press Distribute, review, then lock or change any cover. Every blocked choice shows the rule that blocks it.
  • Early dismissal: proposes one-day lesson swaps with a teacher of the same class first, then covers whatever is left.
  • Uncovered periods: suggests teachers who would become eligible if one supervision duty were released, and the closest candidates with the rules they fail.
  • Output: substitution form PDF in English and Arabic, HR report in PDF and Excel, teacher notifications by WhatsApp link and email.
  • Setup: imports the school's Excel workbook (teachers, classes, subjects, timetable) with a preview before saving.

Architecture

Each school runs its own copy of the app with its own SQLite file, so there is nothing to install beyond .NET or Docker and no way for one school to see another's data. The vendor side is a separate application.

SubCover containers: each school runs its own app and database; the vendor only exchanges signed licenses with it.School staff use the SubCover school app, built with Blazor Server on .NET 10. It contains a pure scheduling engine and import, print and notification features, and stores data in one SQLite file per school. Teachers receive WhatsApp links and emails. A separate vendor control plane on ASP.NET Core and PostgreSQL manages schools and licenses and exchanges ECDSA-signed licenses, activation and heartbeat with the school app, without reading any school database.School staffcoordinator · HR · adminEnglish / ArabicTeachersWhatsApp link · emailSubCover school app.NET 10 · Blazor Server · MudBlazorScheduling enginepure code, property-testedImport · print · notifyClosedXML · QuestPDF · SMTPSQLiteone database file per schoolVendor control planeASP.NET Core · PostgreSQLschools · plans · licenses2FA · audit lognotifysigned licenses (ECDSA P-256)activation · heartbeatThe control plane neverreads a school's database.
SubCover containers: each school runs its own app and database; the vendor only exchanges signed licenses with it.

Key decisions

Keep the scheduling engine as pure code

Situation
The rules are the product. They have to be right, easy to change, and explainable to a teacher who asks "why me?".
Decision
The engine takes the day's data in and returns assignments plus the reason for every rejected candidate. It does no I/O, so it is tested directly, including property-based tests (FsCheck) that check the rules hold for generated timetables.
Trade-off
More code to map data in and out of the engine, but its behaviour can be proven without a database or UI.

One database file per school

Situation
Schools want their data on their own premises or account, and the product has to be simple to install.
Decision
SQLite, one file per school, behind EF Core.
Trade-off
No cross-school queries inside the app. Business data the vendor needs (plans, subscriptions) lives in the control plane instead.

Signed licenses instead of a phone-home database

Situation
The vendor needs to sell and revoke licenses, but must never be able to read a school's records.
Decision
The control plane signs license tokens and commands with ECDSA P-256; the school app verifies them against published public keys. The private key is never in the repository or a database.
Trade-off
Key generation and rotation need a documented procedure, which is in the security baseline.

Quality and operations

  • Unit, component (bUnit) and property-based (FsCheck) tests, run in CI.
  • Pushing a version tag builds, tests and publishes Docker images and a GitHub release.
  • A vulnerable-package check runs in CI.
  • User guide in English and Arabic, and a demo script for sales calls.

What's next

Phase 2 puts the same interface in a Windows desktop app for schools that don't want a server.

More projects

Hiring a .NET or full-stack developer?

I'm based in Cairo and ready to relocate to Saudi Arabia or elsewhere in the Gulf. Notice period: 30 days.

Kareemmoursy75432@gmail.com