Skip to content
Introducing AI OS for Business & School — our most powerful products yet.Explore →
App Corp iconApp Corp
Engineering
SaaS
Architecture
Next.js

Engineering EduPilotPro: The Full-Stack Education SaaS

End-to-end architecture decisions behind a multi-tenant school operating system — from database schema to deployment pipeline

AE

App Corp Engineering

Editorial Team

September 20, 202616 mins read
16 mins readRead time
350Words
Sep 2026Published
App Corp Engineering·Editorial Team

When we set out to build EduPilotPro, the scope was ambitious: a full-stack school operating system serving 50+ institutions across three continents on a single codebase. That meant making architectural decisions that would hold up under multi-tenant isolation, variable network conditions, and the reality that school administrators aren't technical users. Here's the full-stack breakdown of every decision that mattered.

The Monorepo Decision

We chose a monorepo architecture using Next.js for the admin dashboard, React Native for the parent mobile app, and a shared API layer. The reasoning was pragmatic: our team of 6 needed to move fast, and splitting into separate repos would have introduced coordination overhead that a small team couldn't afford. Shared TypeScript types between web and mobile eliminated an entire class of integration bugs. When we added a new API endpoint, both apps got type safety immediately.

Supabase as the Backend Foundation

We evaluated Firebase, Hasura, and custom Node.js backends before choosing Supabase. The deciding factor was PostgreSQL — Supabase gives you a managed PostgreSQL database with Row-Level Security, real-time subscriptions, and file storage, all accessible via a REST API. For multi-tenancy, RLS policies at the database level meant we never had to worry about application-layer tenant isolation bugs. Every query automatically filters by tenant — the database itself guarantees isolation.

Pro Tip

Supabase RLS policies execute at the database level, before any application code runs. Even a direct SQL connection cannot bypass them — this is stronger security than ORM-level checks.

The API Layer: REST Over GraphQL

We chose REST over GraphQL for the API layer. For a school OS, the data access patterns are predictable: administrators view dashboards, teachers submit attendance, parents receive notifications. GraphQL's flexibility wasn't needed and would have added complexity. REST endpoints with clear resource naming, pagination, and error handling were simpler to build, test, and debug. The one exception: a lightweight GraphQL endpoint for the dashboard analytics page, where the data requirements vary by role.

Deployment on Railway

We deployed on Railway instead of AWS or Vercel. The reasoning: Railway gives you a managed PostgreSQL database, environment variables, and deployment in one platform. For a team of 6, the operational overhead of managing AWS services (RDS, S3, CloudFront, IAM) would have consumed engineering time we needed for product development. Railway's preview deployments for pull requests also improved our QA workflow — every PR got a live URL for testing.

Conclusion

The architectural decisions that matter most are the ones you make before writing code. For EduPilotPro, the monorepo, Supabase, REST API, and Railway deployment were boring choices — but boring choices let you focus on the hard problem: building AI agents that actually work for school administrators.

Key Takeaways

  • Monorepo with shared TypeScript types eliminated integration bugs between web and mobile
  • Supabase RLS provides database-enforced multi-tenancy stronger than application-layer checks
  • REST over GraphQL for predictable data access patterns — GraphQL only where flexibility is needed
  • Railway reduces operational overhead for small teams — managed PostgreSQL, deploys, and env vars in one place

We value your privacy

We use strictly necessary cookies to keep our site secure and functional. With your consent, we also use performance cookies to understand how you interact with our site, and functional cookies to remember your preferences. Read our full Cookie Policy