Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Cloudflare Full-Stack Development
·
Module 11
المشروع الثاني: منصة SaaS متعددة المستأجرين (Multi-Tenant)
1
Shared-Schema Multi-Tenancy in D1
Design and implement a shared-schema multi-tenancy model in D1 with `tenants`, `users`, and `tenant_content` tables.
2
Tenant Isolation with Subdomains in Hono
Implement subdomain-based tenant identification in Hono to isolate requests to a specific tenant.
3
Tenant Registration with Admin Creation
Build a tenant registration endpoint that creates a new tenant and an initial admin user.
4
Building Multi-Tenant CRUD APIs with D1 & `tenant_id` Filtering
Implement tenant-scoped CRUD endpoints for content, ensuring all D1 queries are filtered by the current `tenant_id`.
5
Tenant-Aware Authentication and RBAC
Implement authentication and RBAC within the context of a tenant (e.g., tenant admin vs. tenant member).
6
Cross-Tenant Analytics: Super-Admin Aggregate Queries
Build a super-admin endpoint that can perform analytics across all tenants using aggregate queries.
7
Custom Domains with Wildcard Subdomains on Cloudflare
Configure and attach a custom domain with wildcard subdomains to the Cloudflare project.
8
Multi-Tenant Deployment & Live Domain Testing
Deploy and perform end-to-end testing of the multi-tenant system on the live custom domain.
Previous module
تصميم الأنظمة وتحسين الأداء
Next module
من الكود إلى العميل: تحويل المهارات إلى مشاريع مربحة