Ahmed AlsaidyProduct & Systems Engineer
← All projects
Subscription platform for teachers & centers
In ProgressClient System

Nexus Class

An in-development subscription platform giving each teacher or center its own workspace for students, sessions and payments, with a Windows staff app and a mobile teacher app

Role
Full-stack engineering & UI design
Timeline
2026
Platforms
Windows · Android · iOS · Web · Server
Multi-Tenant
isolated tenant workspaces
Web + App
Web, mobile & Windows apps
باقات اشتراك
plans, attendance & billing
TEMM Nexus
backend migration control
Nexus Class teacher and center platform sign-in
Nexus Class teacher and center platform sign-in Click to expand ⤢

Overview

Business problem & context

Teachers and learning centres piece together disconnected tools for attendance, assessments and billing. Scaling to a multi-tenant SaaS introduces the risk of cross-tenant data leakage across students and financials

System Architecture

System layers & components

A multi-tenant SaaS platform: a Laravel 12 API with PostgreSQL and Redis, paired with a Flutter Windows staff desktop app and a Flutter teacher mobile app sharing seven internal Dart packages, deployed via Docker and Caddy

Architecture diagram of Nexus Class multi-tenant SaaS, 7 shared Dart packages, and rotating QR clientsARCHITECTURE BLUEPRINT · MULTI-TENANT EDTECH SAAS7 DART PKGS · 30s QR · 187 TESTSWINDOWS DESKTOPStaff & Center AppOffline Cache · QR Check-InTEACHER & STUDENT MOBILEFlutter iOS / AndroidCohorts · Grades · FeesWEB IDE & ANTI-FRAUD QRPortal + 30s Rotating QRDevice Binding · Results7 SHARED DART PACKAGES (MODULAR WORKSPACE)api_client · auth · domain_models · local_cache · realtime · design_system · shared_uiMULTI-TENANT BACKEND · LARAVEL 12 + POSTGRESQL + REDIS + DOCKER / CADDYTenant Isolation GuardBootstrap Roles + Strict ScopeKido & Nexus Schemas48 Migrations + 32-Table ERPAudited Results & PayrollBatch Rollback · Rate Limiting
L1

Client Apps · Flutter Workspace

Windows staff desktop app + teacher mobile app

  • apps/staff_windows (Desktop)
  • apps/teacher_mobile (Android/iOS)
  • 7 Shared Dart Packages
L2

Shared Dart Packages Layer

Shared domain, networking, offline cache & design system

  • api_client
  • auth
  • domain_models
  • local_cache
  • realtime
  • design_system
  • shared_ui
L3

SaaS Backend · Laravel 12 + PostgreSQL

Tenant isolation, billing, attendance & assessments

  • Laravel 12 API (48 Migrations)
  • Tenant Security Middleware
  • PostgreSQL + Bootstrap Roles
  • Redis Queues + Caddy Reverse Proxy
Tech Stack — Technologies used:
  • Laravel
  • PHP
  • PostgreSQL
  • Redis
  • Flutter
  • Dart
  • Docker
  • Caddy
  • GitHub Actions

Data Model

Database schema & core tables

48 migrations covering tenants, commercial billing, student cohorts, attendance logs, assessments and staff RBAC

Table Role in the system
tenants / subscriptions Tenant record, commercial plan and quota limits
students / cohorts Tenant-scoped student rosters and study groups
attendance_sessions / records Attendance sessions and per-student check-in records
assessments / grades Assessments, grading sheets and progress reports

Implementation

Key technical decisions

01

Seven shared Dart packages across Windows & mobile

Extracted networking, auth, domain models, local caching, realtime streams and UI tokens into seven modular Dart packages consumed by both the Windows staff app and the teacher mobile app

02

Strict multi-tenant scoping across API and database

Every API request passes through tenant and subscription middleware backed by explicit PostgreSQL bootstrap roles to prevent cross-tenant queries

03

Reproducible Docker + Caddy deployment with 65 test files

Production templates (`docker-compose.production.yml`, Caddy, PostgreSQL init scripts) verified by GitHub Actions running PHPUnit and Laravel Pint across 65 test files

Security

Security & access control

  • Mandatory tenant scoping in Laravel middleware prevents cross-tenant IDOR
  • Release handoff discipline excludes placeholder endpoints and signing keys from version control
  • 65 automated test files covering billing, attendance, assessments and tenant isolation

Code Highlight

Nexus Class modular workspace layout

nexus-class-platform/README.md · TXT
nexus-class-platform/
├── backend/                  # Laravel 12 API · 48 migrations · PHPUnit + Pint
├── apps/
│   ├── staff_windows/        # Flutter Windows desktop app for centre staff
│   └── teacher_mobile/       # Flutter Android/iOS app for teachers
├── packages/                 # 7 shared Dart packages:
│   ├── api_client/           ├── auth/              ├── domain_models/
│   ├── local_cache/          ├── realtime/          ├── design_system/  └── shared_ui/
└── infrastructure/           # Docker Compose + Caddy + PostgreSQL bootstrap roles

Summary

Outcome & status

Reached release candidate `0.5.1-rc.2` with 48 migrations, 65 test files and seven shared Dart packages

Next project ManageX ERP & POS → Local-first Inventory, Treasury & POS

Technical Evaluation · GCC / Remote / Egypt

Building an operational system, rescuing an AI cloud stack, or hiring a Product Engineer on retainer?

Complete the 30-second scope qualifier so our first conversation goes directly into system architecture, milestones, and budget fit.