Mammoth Templates logomammoth templates

Home / Lovable / Courses and learning

Video preview

The Lovable Course Platform Kit is a staged build plan for a real online learning product in Lovable: a public catalog, instructor course builder, a distraction-free lesson player that remembers where you stopped, quizzes, Stripe checkout with coupons, drip schedules, certificates anyone can verify, reviews and instructor analytics. The hard part of a course site is not the video player, it is access control: who may see which lesson, when, and what happens after a refund. The 13 prompts are built around that.

The included data-model.sql separates the public syllabus from gated lesson content, keeps quiz answer keys in a table students can never read, grades quizzes in a database function, enforces drip schedules and access expiry inside one can_access_lesson() function, requires real progress before a review, issues certificates idempotently and keeps private videos behind short-lived signed URLs. Seed SQL creates eight demo courses with modules, lessons, a sample quiz and a coupon.

A clickable prototype (catalog, course page with coupon checkout, lesson player with simulated video, notes and keyboard shortcuts, interactive quiz, drip locks, student dashboard, instructor builder with publish checklist and funnel analytics, certificate verification) acts as the visual spec, and a built-in pack browser lets you search, copy and tick off each prompt offline. Honest note: Lovable is an AI builder; test payments, refunds and permissions yourself before charging real students.

Highlights

  • 13 staged prompts with verify checklists and troubleshooting
  • Access control done right: public syllabus, gated content, drip schedules, expiry and refunds enforced by one SQL function
  • Quizzes graded in Postgres: answer keys never reach the browser before submission
  • Private video via signed URLs from an Edge Function that checks access with the caller's JWT
  • Stripe Checkout with server-side pricing, coupons, idempotent webhook and automatic access revocation on refund
  • Certificates with public verification page, plus reviews that require real progress
  • Instructor builder checklist, student dashboard and lesson drop-off analytics
  • Clickable prototype and demo SQL with 8 courses; CC0, build and sell with no attribution