Mastery Academy | Enterprise LMS & Protected Video Learning Platform
A comprehensive Learning Management System (LMS) and video curriculum streaming platform. Built with Next.js 14 App Router, Prisma ORM, Clerk multi-role authentication, UploadThing media pipelines, and Tailwind CSS.

โก Executive Summary & Client ROI
Educational creators, universities, and enterprise training programs require seamless video streaming, strict DRM access control, and dynamic student progression metrics. Mastery Academy delivers a white-label LMS with dedicated teacher and student dashboards that drive engagement and maximize course completion rates.
Metric
Target Achieved
Business Impact
Course Completion Rate
+34% Lift
Interactive chapter milestones & automatic progress saving
Video TTFB Streaming
< 85ms
Global edge cached media delivery via CDN
Teacher Onboarding Time
< 5 Minutes
Drag-and-drop course and chapter builder
Platform Availability
99.98% SLA
Serverless Next.js edge routing & connection pooling
๐ Key Engineered Features
๐ Dual Role Dashboard Architecture: Seamlessly switch between the Student Learning Hub (video player, attachments, chapter checklists) and the Teacher Studio (course creation, analytics, student enrollments).
๐น Secure Streaming & Asset CDN: Upload video lectures, chapter resources, and downloadable PDF blueprints securely via UploadThing CDN with pre-signed upload security.
๐ Real-Time Student Analytics: Teacher dashboard visualizing enrollment growth, course completion velocity, and chapter drop-off rates.
๐ Multi-Role Clerk Authentication: User profile management, organization workspaces, and protected API routes intercepting unauthorized chapter access.
๐ Dynamic Course Authoring Tools: In-place inline editing for course titles, descriptions, categories, thumbnail banners, and chapter sequencing.
๐พ Prisma Relational Data Model: Robust database schema linking User, Course, Chapter, Attachment, and Progress entities with automated cascade deletions.
๐๏ธ System Architecture
Loading
flowchart TD subgraph Students["Student Learning Hub"] VideoPlayer["Curriculum Video Player"] ProgressTracker["Chapter Progress Auto-Save"] ResourceDownloads["Course Attachments"] end subgraph Teachers["Teacher Studio"] CourseBuilder["Course & Chapter Builder"] AnalyticsDashboard["Revenue & Completion Analytics"] end subgraph SecurityGateway["Clerk Auth & API Boundary"] ClerkAuth["Clerk Role Verifier"] Middleware["Next.js Route Protection"] end subgraph CoreBackend["Backend & Data Storage"] PrismaLayer["Prisma ORM Layer"] DB[(PostgreSQL / MySQL DB)] UploadThing["UploadThing Media CDN"] end Students --> SecurityGateway Teachers --> SecurityGateway SecurityGateway --> Middleware Middleware --> PrismaLayer PrismaLayer --> DB CourseBuilder --> UploadThing VideoPlayer --> UploadThing
๐ ๏ธ Complete Tech Stack
Core Framework: Next.js 14 (App Router, Server Components)
Language: TypeScript (Strict Mode)
Database & ORM: Prisma ORM with PostgreSQL / MySQL
Authentication: Clerk (Role-Based: Student / Teacher)
Media & File Storage: UploadThing
Icons: Lucide React
๐ Quick Start & Local Setup
1. Install dependencies npm install # 2. Configure environment cp .env.example .env # Set DATABASE_URL, NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY, CLERK_SECRET_KEY, and UPLOADTHING_SECRET # 3. Synchronize database schema npx prisma db push # 4. Run development server npm run dev
Open http://localhost:3000 to view the academy platform.
๐จโ๐ป Engineering Lead & Contract Inquiries
Architected and maintained by Niall.M โ Senior Webmaster, Principal Frontend Engineer & E-Commerce Architect.
๐ GitHub: github.com/niallmuk
๐ง Email: niall@nialluk.com
๐ฌ Telegram: @nialluk
๐ฑ WhatsApp: +44 7446317825
๐ผ Contra Profile: Available for bespoke LMS platforms, education technology, and membership portals.
About
Enterprise Video Learning Management System & Curriculum Hub built with Next.js 14 and Prisma
Resources
Readme
Stars
0 stars
Watchers
0 watching
Forks
No releases published
Contributors 1 (1)
0 likes ยท 0 views ยท Nov 10, 2026
Comprehensive LMS and video curriculum streaming platform with role-based auth, secure media pipelines, course authoring, and real-time analytics.