Home
Ashavid
Back to Portfolio

Built by AshaVidEdTech / Learning Business PlatformBuilt 2026

Edvora

One Deployment, Many Academies, and a Tenant Chosen by the Host Name

A white-label academy platform for Persian-speaking schools, where the hardest constraint was not the feature list but keeping every outside service behind an adapter.

Course page with the enrol card: price, start date, payment plans and coupon
Course page — plans, instalments and coupon
1
live academy

one real academy, plus a demo tenant

16
architecture decisions

recorded in docs/adr

8
feature areas

site, sales, CRM, learning, live, staff, admin, import

0
external runtime calls

no CDN, hosted fonts or analytics

Origin

Why we started building this

A platform that promises to run many academies has to decide, on every single request, whose academy it is — and get it right before a byte of data is read.

Persian-speaking academies run their business on a patchwork: a WordPress site with a course plugin, a spreadsheet of leads, a payment link from one provider, an SMS panel from another, and a Telegram group standing in for a student portal. Each piece works alone. None of them know about each other.

The founders of these academies are educators, not operators. What they need is a single system where the public site, the enrolment flow, the student experience and the staff work all share one source of truth — and where the brand on the front is theirs, not ours.

Edvora was built as that system, with one more constraint that shaped every decision: it had to be self-hostable with no hard dependency on any outside provider. No CDN, no hosted fonts, no analytics script, and every provider swappable behind an adapter. The first tenant went live on that basis.

What we built

What we built

A pnpm/Turborepo monorepo serving many academies from one Next.js 16 deployment over Payload CMS 3 and PostgreSQL, with the tenant resolved from the request host and every outside service — payment, SMS, live classes, object storage, WordPress import — sitting behind an interface with a real adapter and a mock.

Student dashboard with course progress and path to the certificate
Student dashboard — path to the certificate
  • Tenant from the host name

    Each academy gets its own domain, brand colours, payment gateway, staff and data. The tenant is picked from the host on every request, so isolation is a property of routing, not of discipline.

  • Sales and lead CRM

    Checkout with one-off or instalment plans and coupons, a payment gateway callback (or a mock for testing), and an advisor follow-up queue with outcomes, next steps and pipeline rules.

Advisor desk with follow-ups, daily goal and lead queue
Advisor desk in /staff
  • Learning that goes deep

    Student panel, lesson player with progress, quizzes with four question types and a question bank, assignments with private uploads, drip schedules, and public certificate verification at /verify.

  • Live classes behind an adapter

    Self-hosted BigBlueButton for join and host links, attendance and recordings in private storage — swappable without touching the product code.

Lesson page with course outline and next-lesson button
Lesson player with outline
  • Staff console with real roles

    Per-role desks for advisors, finance, support and instructors; a permission catalog with per-academy roles, templates, scoped memberships with expiry, optional TOTP, and an audit log.

  • One-click WordPress import

    Migration from WooCommerce, LifterLMS and Tutor LMS with a dry run and redirects — because every academy we spoke to already had one of these.

The Problem

Why this needed to exist

  • Multi-tenancy that is enforced by convention leaks the first time a developer forgets a filter. It had to be structural.

  • Being fully self-hostable rules out the default toolkit — CDNs, hosted fonts, analytics, hard-wired payment and SMS providers — so every outside dependency needed an adapter and a mock.

  • Money amounts can run to large magnitudes; storing them as floats would be a correctness bug waiting to happen.

  • Persian-first is not translation: right-to-left layout, Jalali dates, Persian digits and a Persian admin default all have to be designed in, not patched on.

  • An academy owner inherits a WordPress site and years of orders. A platform that ignores that history is a platform nobody switches to.

The Thesis

How we framed the opportunity

The thesis was that an academy platform for this market wins on operability, not on features — and operability here means the academy owns its deployment and can swap any provider without a rewrite.

  • Tenancy belongs in routing

    Resolving the tenant from the host name on every request makes isolation the default state, with explicit redirects for the cases that do not fit.

  • Every outside service gets an interface and a mock

    Payment, SMS, live classes, storage and import all sit behind adapters, so the whole flow runs offline and a provider change is a file, not a rewrite.

  • Store money as integers

    Amounts are stored as integers in the smallest currency unit, which removes a whole class of rounding disputes between what the student saw and what the gateway charged.

  • Migration is a feature, not a service

    WordPress import with a dry run turns the hardest part of switching — the fear of losing history — into a button the owner can press twice.

The Landscape

Where the existing options fell short

What academies were using

  • WordPress plus a course plugin, with sales and students in separate systems.
  • Hosted LMS products that lock the academy into their own payment and hosting choices.
  • Telegram groups and spreadsheets standing in for a student portal and a CRM.

What was missing

  • A single platform where site, sales, learning and staff share one data model.
  • Self-hostable deployment with swappable payment and SMS providers.
  • Real role and permission management for a growing staff.
  • A migration path from the WordPress setup everyone already had.

Design Principles

The decisions that shaped the product

  1. 01

    White-label all the way down

    Domain, colours, gateway, staff and data are per academy. Edvora is infrastructure; the brand the student sees is the academy’s.

  2. 02

    No external runtime dependencies

    Self-hosted fonts, no CDN, no third-party scripts. The platform makes no request the operator does not control.

  3. 03

    Adapters with mocks, always

    Every provider has a real adapter and a mock, which is what lets the full flow be tested end to end without a single live credential.

The Build

How it came together

  1. Phase 1

    Tenancy, CMS and the Seal design system

    Payload CMS 3 with the multi-tenant plugin on PostgreSQL, host-based tenant resolution, and the shared design tokens in packages/ui.

  2. Phase 2

    Sales, learning and staff

    Checkout with plans and coupons, the lead CRM, the student panel and lesson player, quizzes and assignments, and the per-role staff desks with 2FA and audit.

  3. Phase 3

    Live classes, gamification and import

    BigBlueButton behind an adapter, the XP ledger and badges each academy can switch on, and the WordPress migration with dry run and redirects.

Stack

  • Next.js 16
  • Payload CMS 3
  • PostgreSQL 16
  • TypeScript (strict)
  • Tailwind CSS 4
  • Turborepo
  • BigBlueButton
  • Playwright + axe

Role

Product & Engineering

Audience

Academy Owners · Students · Advisors & Instructors · Finance & Support Staff

What Shipped

  • A live multi-tenant deployment with a real first academy and a demo tenant for testing
  • Tenant resolution from the host name, with per-academy domain, branding, gateway, staff and data
  • Checkout with one-off and instalment plans, coupons and a payment gateway adapter
  • A full learning stack: lesson player, quizzes, assignments, drip schedules and public certificate verification
  • Per-role staff desks, a permission catalog, optional TOTP and an audit log
  • One-click WordPress import from WooCommerce, LifterLMS and Tutor LMS
  • CI with Vitest, Playwright end-to-end and axe accessibility runs; sixteen architecture decision records in the repo

Gallery

Every surface, as shipped

Payload admin dashboard in the Seal theme
Admin dashboard, Seal theme
Public certificate verification showing a valid certificate
Certificate check at /verify
Checkout on the mock payment gateway
Checkout on the mock gateway

What building this taught us

  1. 01

    Multi-tenancy has to be a property of the request path, not of code review.

  2. 02

    Owning your deployment decides your stack more than any feature list does.

  3. 03

    An adapter without a mock is only half an adapter.

  4. 04

    Persian-first means Jalali dates and Persian digits in the admin too, not just on the public site.

  5. 05

    The migration tool is the sales tool.

We build the products we would want to operate ourselves.

Edvora is one of the ventures we design, build, and run in-house at AshaVid.