Built a multi-tenant SaaS foundation with tenant-scoped access, onboarding and background jobs, enabling institution administration while SIS, LMS and ERP modules remain planned.
Full-Stack EngineerIndependent SaaS architecture and implementation
Type
SaaSEducation Management
Platform
Web ApplicationResponsive web experience
Status
Private ProjectExplore the case study below
Project Overview
The thinking behind Education OS.
I independently designed and implemented the Education OS SaaS foundation around a modular monolith, tenant-aware APIs and layered membership and role checks. Institution provisioning, owner invitations, module entitlements and audit logging centralize platform administration; Redis/BullMQ handles background jobs. The foundation is undergoing local security and integration testing. Academic, admissions, SIS, LMS and ERP modules remain planned for incremental development.
Problem & engineering approach
The problem
Schools often rely on disconnected systems for admissions, student records, academic administration, communication and operational management.
Institutions have different operational needs, making a fixed, one-size-fits-all school management system difficult to scale.
Managing multiple institutions from one platform requires strong tenant isolation, controlled access and centralized administration.
School onboarding, user roles, campus configuration and feature activation need consistent workflows instead of manual database operations.
Adding new academic and administrative modules must not disrupt existing functionality or expose data between institutions.
A growing SaaS platform needs reliable background processing, maintainable database migrations, audit trails and repeatable testing.
The approach
Architected a multi-tenant SaaS foundation using a Next.js frontend, NestJS backend and PostgreSQL database.
Developed a centralized Platform Super Admin portal for managing institutions, campuses, tenant status and platform-level operations.
Implemented tenant provisioning with unique institution identifiers, primary-campus creation and transactional database persistence.
Built secure School Owner invitation and acceptance workflows using Supabase Auth and application-level membership verification.
Developed School Owner onboarding with institution configuration and controlled tenant activation.
Implemented role-based access control with permissions, tenant memberships and platform-versus-institution authorization boundaries.
Built a modular feature-entitlement system that allows released modules to be enabled or disabled for individual institutions.
Added module dependency validation to prevent incompatible feature configurations.
Implemented institution suspension and reactivation with administrator reasons and audit events.
Created platform dashboards, institution directories, search, pagination, status views and audit-history interfaces.
Integrated Redis and BullMQ for asynchronous background job processing.
Structured the codebase as a pnpm monorepo with Prisma migrations, restricted database roles, Row Level Security policies and security regression tests.
Established a development workflow focused on isolated local testing, security hardening and incremental feature releases.
Tech Stack
Built with modern and reliable technologies.
The tools connecting the interface, application logic and data.
Next.js
NestJS
PostgreSQL
Prisma
Redis
React
TypeScript
Docker
Architecture & implementation
Frontend
Next.js / React / TypeScript
Backend
NestJS / REST APIs / Modular Monolith
Database
PostgreSQL / Prisma ORM / Row Level Security
Authentication
Supabase Auth / SSR Sessions
Authorization
RBAC / Tenant Memberships / Module Entitlements
Background Processing
Redis / BullMQ Worker
Development Infrastructure
Supabase Local / Docker / pnpm Monorepo
Key Features
Features that support the real workflow.
Multi-tenant SaaS architecture
Centralized Platform Super Admin portal
Protected administrator authentication
Institution directory with search and pagination
Institution provisioning and management
Primary campus creation
School Owner invitation workflow
Invitation resend and revocation
Secure invitation acceptance
School Owner account onboarding
Institution activation and suspension
Tenant lifecycle management
School Owner dashboard foundation
Role-based access control
Tenant-scoped permissions
Tenant membership management
Module catalog and release statuses
Institution-specific module entitlements
Module dependency validation
Platform dashboard statistics
Centralized audit logs
Restricted database access policies
PostgreSQL Row Level Security foundation
Transactional backend operations
Redis and BullMQ background jobs
Prisma schema and migration management
Authentication and authorization regression tests
Modular monorepo architecture
Local Supabase development environment
Real-World Impact
Outcomes shaped by the product’s purpose.
Centralized SaaS administration
A Super Admin foundation provides unified control over institution creation, onboarding, campus setup, tenant lifecycle and module availability.
Institution-specific configuration
Each school can be provisioned with its own membership relationships, configuration and independently assigned feature entitlements.
Security-focused multi-tenancy
Authentication, role permissions, membership checks and restricted database access establish layered controls for institution separation.
Extensible module architecture
A centrally managed module catalog, release statuses and dependency rules provide the foundation for gradually introducing new education modules.
Testable development foundation
Automated TypeScript, lint, unit and authorization checks support incremental development and help identify regressions before deployment.
Challenges & lessons learned
Separating multiple institutions securely
Designed a shared-database tenant model with tenant-aware APIs, membership authorization, role permissions, restricted PostgreSQL identities and RLS foundations.
Controlling access across different user levels
Separated Platform Super Admin privileges from School Owner access and enforced authorization in backend guards and services rather than relying on frontend navigation.
Managing secure school onboarding
Connected institution provisioning, Supabase Auth invitations, verified identities, membership creation and owner-led tenant activation into a controlled onboarding workflow.
Supporting optional SaaS modules
Designed tenant-specific entitlements and central module release controls with dependency checks to prevent invalid feature combinations.
Maintaining reliable business operations
Used transactional database operations, audit logging, background workers and automated regression checks to improve correctness and traceability.
Preparing for scalable development
Organized frontend, backend, database and worker applications in a pnpm monorepo with defined boundaries and reproducible development tooling.
What I learned
Design multi-tenant SaaS applications around security boundaries from the beginning.
Separate authentication from application-level authorization and tenant membership decisions.
Use modular-monolith architecture to support gradual product expansion without premature microservices.
Treat tenant provisioning, account invitations and onboarding as connected transactional workflows.
Build feature-entitlement systems with release controls and dependency validation.
Use database constraints, restricted credentials and RLS alongside backend authorization.
Make audit trails, background processing and automated security tests part of the platform foundation.
Validate complex SaaS workflows through incremental development and isolated testing before public deployment.