Project
Advanced
Capstone: Multi-Tenant Support Portal
Build a realistic enterprise SaaS workflow that combines routing, data, caching, auth, observability, and deployment.
75 min
3 sections
capstone
saas
multi-tenant
production
1
2
3
01. Define the system contract
Section 1 of 3
The capstone is a support portal used by multiple enterprise customers. Users sign in, switch organizations, view tenant-scoped ticket queues, assign tickets, receive webhook updates from external systems, and export audit logs.
text
Routes:
/login
/app/[orgId]/dashboard
/app/[orgId]/tickets
/app/[orgId]/tickets/[ticketId]
/app/[orgId]/settings/members
/admin/tenants
/api/webhooks/provider
Core invariants:
- Every customer-owned query filters by orgId.
- Every mutation checks role and writes audit_log.
- Webhooks verify signature and are idempotent.
- Cached data is tagged by tenant.
- Critical flows have Playwright coverage.Back to Course