Online courses with card checkout, built by Claude Code on Elements
Courses sold by card, lesson videos with notes and progress, live lesson questions, and revenue and completion stats.
How it's built
Lecturemint needed course sales by card, video lessons with progress, a question thread under each lesson that the instructor answers live, and a studio for uploading lessons and reading the numbers. Each of those is a part of Elements, so the agent spent its 29 minutes on the course platform itself.
- Live questions and replies. Lesson questions are a LiveTable, so a question appears on the lesson page and in the instructor's inbox the moment it is posted, and the reply shows up under it just as fast. Only students who bought the course can ask, and only the instructor replies.
- Card payments. Buying a course is one
@rpccall that reads the price on the server and sends the student to Stripe. The course is granted once whether the return page or Stripe's webhook arrives first. Until a Stripe key is set, a test checkout inside the app takes the payment, and in production the app registers its own webhook. - Video uploads. The instructor uploads lesson videos straight through a server call, and the app streams them so the player can jump to any point.
- Progress as a function call. Marking a lesson complete is one server call that checks the student owns the course and returns the updated progress.
- Data from SQL files. Migrations define the platform and seed the instructor, three courses with covers and six to eight lessons each with sample videos and notes, four students with purchases and progress, and eight questions.
- Sessions and roles. Every studio page and server call shares one guard on the instructor role.
Why Elements
Elements is the integrated stack for building apps with AI: a TypeScript project server, build system, app framework and deployment system, engineered from the ground up as one. Your editor, tools and one or many agents all connect to the same always-on project server, which runs type checking, program analysis, migrations and tests as the agent builds. Built-in guardrails keep the app structured correctly and secure as it grows from prototype to production.
Run it yourself
Paste this into a terminal. It installs Elements, creates your copy of this app and starts it.
curl -fsSL 'https://elements.dev/install?create=lecturemint&scaffold=demo-lecturemint' | sh