ScaffoldHub / Templates / Online learning

Online learning SaaS template

Multi tenant with subdomain · React + Hono + Prisma · TypeScript

A multi-tenant online learning SaaS, generated from a visual model. Each school gets a dedicated subdomain (school.yourdomain.com) with its own courses, lessons, and student data.

Subdomains, organization isolation, instructor roles, student enrollments — all derived from the data model. Edit the model, regenerate, and the front end, API, and database migrations all update together.

Online learning SaaS template demo screenshot

Entities in this template

  • Course
  • Lesson
  • Instructor
  • Enrollment
  • Quiz

Each entity gets a generated form, list view, filter, CSV import and export, and audit logging — wired automatically from the model. Add a field on the canvas, regenerate, and every layer (Prisma migration, Hono route, React form, list, validation, test) updates together.

What ships with the template

  • Per-school subdomain with isolated data and branding
  • Course catalog with lessons and prerequisites
  • Instructor profiles and assignments
  • Student enrollments with progress tracking
  • Quiz authoring and grading
  • Stripe-ready billing per school

Common use cases

  • White-label LMS for training companies
  • Single-school course catalog
  • Cohort-based education
  • Internal corporate training portal

Stack

  • Frontend: React 19 + TanStack Router + shadcn/ui + Tailwind CSS v4
  • Backend: Hono + TypeScript with Prisma 7 and PostgreSQL
  • Auth: Better Auth (email + Google OAuth + sessions)
  • Billing: Stripe (hosted checkout, webhooks, customer portal)
  • Mobile: Expo / React Native scaffold with push notifications
  • AI assistants: AGENTS.md, docs/ folder, and built-in MCP server

Frequently asked questions

How do subdomains work?

Each organization has a subdomain (e.g., acme.app.com). The generated app reads the subdomain on every request, scopes queries to that organization, and applies that organization branding.

Can I host on Vercel with subdomains?

Yes. The generated deploy package includes Vercel configuration. Wildcard subdomain routing is supported.

Is video hosting included?

No. The template stores lesson metadata and supports file uploads via S3, but video transcoding and adaptive streaming are not generated. Plug in Mux, Cloudflare Stream, or Bunny on top of the lesson model.

Other templates