Skip to content
← All projects
BackendFull-Stack

Apr 2026 - Jun 2026 • Full-Stack Learning Management System (LMS)

Ảnh dự án CourseHub LMS

Overview

CourseHub is a clean, high-performance Full-Stack LMS engineered as a Backend Developer showcase. Features a Udemy-style split-screen classroom workspace (collapsible syllabus sidebar on the right, active video/resource area on the left), URL query-synced navigation, persistent database cart & checkout, and comprehensive admin revenue analytics.

System Architecture

Strict layered MVC architecture in Node.js/Express. Enforces 3-tier Role-Based Access Control (Admin, Instructor, Student) via stateless JWT verification middleware and centralized error handling. Intentionally eliminates heavy ORMs (Prisma) and Docker to ensure rapid cold starts and raw database control.

Data & Database

PostgreSQL (Supabase) relational schema normalized to 3NF across 15+ tables. All database interactions utilize handwritten, high-performance Raw SQL executed via native 'pg' driver with connection pooling, maintaining precise control over database transaction boundaries.

Key Challenges & Technical Solutions

  1. 01

    1. Udemy-Style Workspace & URL-Synchronized Navigation:

    Engineered a split-screen classroom interface mapped to URL query params (/my-courses?courseId=...&lessonId=...), enabling seamless native browser history navigation.

  2. 02

    2. Native Raw SQL Optimization over Heavy ORMs:

    Bypassed heavy ORMs to eliminate query overhead; crafted multi-table aggregate SQL joins to calculate student completion percentages in a single sub-millisecond roundtrip.

  3. 03

    3. Multi-Role RBAC Authorization & Privilege Protection:

    Constructed authorization middleware verifying JWT token claims and resource ownership, safeguarding Instructor curriculum management from unauthorized student requests.