Lecturemint: online watercolor courses for a painting instructor

Lecturemint: online watercolor courses for a painting instructor

00 Markdown

Courses sold by card, lesson videos with notes and progress, live lesson questions, and revenue and completion stats.

Agent specs

Agent
Claude Code, Opus 5.5 Medium
Time
29 min
Cost
$9.32*

Agents work faster and more accurately on Elements.

* Cost at API rates, September 2026.

Run it yourself

Paste this prompt into your AI agent. You get the finished app on your own machine, ready to change however you like.

Agent Chat
Install elements:
curl -fsSL 'https://install.elements.dev?os=darwin' | sh && export PATH=~/elements/bin:$PATH

Create an Elements app from the elementscode/demo-lecturemint scaffold:
cd ~/elements/projects
elements create lecturemint -scaffold=elementscode/demo-lecturemint
cd lecturemint

Start the app.

Need an AI agent?

In AI desktop apps, paste into the Code tab, not the general chat.

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.

What Elements gave the app

  • 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 @rpc call 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.

What the project server gave the agent

The project server runs alongside the agent and answers as soon as a file is saved: it type-checks the templates, TypeScript and SQL, applies migrations and reruns the tests, so every question came back right away and the agent kept building.

What shipped

The app type-checks with zero errors and all 26 tests pass. Every page works on desktop and phone. A real sandbox payment went through Stripe end to end.

The code

Build it from scratch

To watch your agent build this app from an empty project, use the prompt we used instead. It takes longer than starting from the finished app above.

Agent Chat
Install elements:
curl -fsSL 'https://install.elements.dev?os=darwin' | sh && export PATH=~/elements/bin:$PATH

Create an Elements app:
cd ~/elements/projects
elements create lecturemint
cd lecturemint

Start the app, then build this:

Build an online course platform named lecturemint for an instructor who teaches
watercolor painting.

STUDENT
- Browse courses with a cover, description, lesson list and price.
- Buy a course by card and get access.
- Watch lessons (video with notes below), mark them complete, and see
  progress per course.
- Leave a question under a lesson; the instructor replies.

INSTRUCTOR (admin account)
- Create courses and lessons: title, video upload, markdown notes, order.
- Students per course, revenue, and completion rates.
- Answer lesson questions.

Payments by Stripe.

Seed the instructor, three courses with covers and five to eight lessons each
(short sample videos), four students with purchases and progress, and some
questions. Show the seeded logins on the sign-in page.

New questions and replies update in real time.

The weekly digest

New lessons, demos and posts from elements.dev, in one email a week.

Comments· 0