No. 75SaaS8 min read2,030 words
How to build an online course platform: MVP and stack
How to build an online course platform for founders and creators: the MVP, video streaming, access control, payments, the stack we use and what to skip.
- Written by
- Lazy Devs
- Published
- Updated
- Sources
- Cited inline

Key takeaways · 05
The short version
- 01An online course platform MVP is one reliable loop: a student pays, logs in and watches the lesson they paid for on any device. Course structure, video, accounts, payments, access and progress tracking are the whole first release.
- 02Use a managed video service for the MVP. Adaptive streaming, transcoding, a CDN and signed playback URLs are a product in their own right, and building them yourself rarely pays off early.
- 03Derive access from enrollment and payment state rather than a manual flag, so refunds, failed renewals and expired subscriptions take effect without anyone touching the database.
- 04Grant access from the payment webhook through one idempotent fulfilment function, never only from the browser after checkout, and reconcile with the payment provider on a schedule.
- 05Aim for reasonable content protection: signed expiring URLs, no raw downloads and optional watermarking. Perfect protection against screen recording is not achievable.
On this page · 11
To build an online course platform, you need five things working together: a course structure (courses, modules, lessons), reliable video streaming, user accounts, payments that grant and revoke access, and progress tracking. Use a managed video service and a payment provider driven by webhooks, keep access derived from payment state, and leave quizzes, certificates and community for later.
A course platform looks like a video site with a login. That is the easy part. The real work is making sure the right people can watch the right videos, that payments grant access reliably, and that your content does not end up shared everywhere by Friday. This guide covers what to build first, the parts founders underestimate, the stack we would use and what drives the cost.
What a course platform is, and when to build your own
A course platform sells access to structured learning. That structure (a course made of modules, made of lessons, each lesson a video, a text page, a quiz or a download) is what separates it from a plain video host or a blog with a paywall.
It is for creators, coaches, training companies and businesses that want to own the student relationship and the margin instead of renting both from a hosted tool. Hosted platforms are a sensible way to start. The usual reasons to build your own are:
- Pricing, bundling or licensing models the hosted tools will not support, such as team seats or usage-based access.
- Courses that are one part of a bigger product, like a SaaS with an academy, or a membership with learning paths.
- Your own branding, domain and checkout without the hosted tool's fingerprints.
- Owning the data: student progress, engagement and revenue in your own database.
- Platform fees that have grown into a real line item at your volume.
If you are weighing this decision more generally, our build vs buy comparison covers how we think about it.
The one job the platform must do well: a paying student logs in and watches the lesson they paid for, on the first try, without friction. Everything else is secondary to that loop working every time.
The MVP feature set
Build the loop, not the dream.
Build first
- Course structure. Courses, modules and lessons in an order an instructor can edit.
- Video lessons. Upload, transcode and play back reliably on phones and laptops.
- Accounts and roles. Students, instructors and admins.
- Payments that grant access. A one-time purchase or a subscription, where a successful payment grants the course and a refund or cancellation removes it.
- Progress tracking. Which lessons a student has finished, and where they left off.
- A basic instructor and admin area. Create a course, add lessons, see enrollments, refund a student, fix a broken enrollment.
Build later
- Quizzes, assignments and graded work.
- Certificates of completion.
- Drip scheduling, which releases lessons on a timetable.
- Community, comments and discussion.
- Coupons, bundles, affiliates and multi-currency pricing.
- Team or company licences with seat management.
- Native mobile apps. A responsive web app gets you to validation faster.
Be ruthless here. Every item you move from the first list to the second shortens the time until real students are using the product and telling you what is missing.
Video is its own product
This surprises almost everyone. Streaming video well is a real engineering problem, and putting an MP4 in object storage behind a video tag falls apart the moment a student on a train tries to watch a high-resolution lesson over a patchy mobile connection.
What a good video setup actually includes:
- Transcoding each upload into several resolutions and bitrates.
- Adaptive bitrate streaming, usually HLS, so the player drops quality instead of buffering when the connection weakens.
- A CDN so video is served from close to the viewer.
- Signed, expiring playback URLs so streams cannot be hot-linked or shared indefinitely.
- Thumbnails, captions and a player that works on every major browser and device.
Building that yourself is weeks of work and ongoing maintenance. For an MVP we almost always use a managed video service such as Mux, Cloudflare Stream or api.video. You upload a file, they return a playable stream and a thumbnail, and you avoid accidentally building a media company. Both Mux and Cloudflare Stream document signed playback, which is the main protection you need.
| Approach | Effort | Playback quality | Protection | When it makes sense |
|---|---|---|---|---|
| MP4 files in storage | Lowest | Poor on slow connections | Weak, easy to download | Free previews only |
| Managed video service | Low | Adaptive streaming via CDN | Signed URLs, optional DRM | Almost every course platform |
| Self-built pipeline | High, ongoing | Good if done well | Whatever you build | Very high volume, specialist needs |
Captions are not optional
Captions help students watching without sound, non-native speakers and people who are deaf or hard of hearing. They are also an accessibility expectation: the W3C's guidance on captions and subtitles explains what good captions include. Most managed video services can generate a first draft automatically. Have someone review them, and store them as WebVTT files served through the HTML track element or the player's caption support.
Access control is the whole game
The question your code answers thousands of times a day is "is this person allowed to watch this lesson right now?" The answer depends on what they bought, whether their subscription is active, whether they were refunded and whether the lesson is released yet. Wrong in one direction, paying customers are locked out. Wrong in the other, your paid course is free.
Keep access as derived data, computed from enrollments and payment state, not a flag someone sets by hand. A minimal shape:
create table enrollments (
id uuid primary key default gen_random_uuid(),
user_id uuid not null references users(id),
course_id uuid not null references courses(id),
source text not null, -- 'purchase' | 'subscription' | 'gift'
status text not null, -- 'active' | 'refunded' | 'expired'
granted_at timestamptz not null default now(),
revoked_at timestamptz,
unique (user_id, course_id)
);
-- "Can this user watch this course?" is one cheap, honest query
select 1 from enrollments
where user_id = $1 and course_id = $2 and status = 'active'
limit 1;Check this on the server for every lesson page and every playback token you issue, not just when rendering the course menu. Hiding a link is not access control.
If you sell subscriptions that open up a whole catalogue rather than individual courses, the same idea applies at a different level: map plans to the features or content they grant. Stripe's Entitlements feature models exactly this, and our membership site guide goes deeper on tiered access.
Payment webhooks and access drift
Payment state lives with your payment provider. Access lives in your database. The webhooks connecting them can arrive late, more than once or out of order.
If you grant access in the browser right after checkout, a student who closes the tab too early pays and gets nothing. The pattern that works, and the one Stripe describes in its fulfilment guide, is a single idempotent fulfilment function:
- Trigger it from the webhook, which is the source of truth.
- Optionally also call it from the checkout success page, so the student sees access immediately.
- Make it safe to run twice for the same payment, recording which events you have already processed.
- Handle the reverse events too: refunds, disputes, failed renewals and cancellations.
- Run a scheduled job that reconciles enrollments against the provider, so the two cannot drift silently.
We wrote up the general discipline in webhooks done right, and the subscription side in implementing subscription billing the right way. Read both before wiring up payments.
Tax on digital products
Selling courses across borders means sales tax, VAT or GST on digital services in many places, often based on where the buyer lives. A payment platform with tax calculation, such as Stripe Tax, or a merchant-of-record provider saves you from tracking every jurisdiction yourself. This is engineering guidance, not tax advice, so confirm your obligations with an accountant.
Content protection: good enough, then stop
You will not stop a determined person screen-recording a lesson, and chasing perfect protection is a money pit. The realistic goal is to make casual sharing inconvenient:
- Signed, short-lived playback URLs tied to a logged-in session.
- No raw downloads for premium lessons. Offer downloadable PDFs and worksheets deliberately instead.
- An optional, subtle watermark with the viewer's email.
- Limits on concurrent sessions per account if account sharing becomes a real problem.
- Full DRM only if the content's value genuinely justifies the cost and the device compatibility issues.
Match protection to what the content is worth and stop there.
The stack we would reach for
Nothing exotic. A proven stack ships faster and breaks less.
- Next.js for the frontend and most of the API, keeping fast, indexable marketing and course sales pages alongside the logged-in app in one codebase.
- TypeScript end to end, so one team moves across the whole thing.
- Postgres as the source of truth for users, courses, enrollments and progress.
- A managed video service so you are not running a transcoding farm.
- Stripe for payments and subscriptions, driven by webhooks. Our Stripe integration work is mostly about getting this layer right.
- A background job queue for welcome emails, transcoding callbacks, progress rollups and nightly reconciliation.
- A transactional email provider for receipts, password resets and "you have a new lesson" emails.
If your platform is closer to a full product with tiers, teams and analytics than to a creator selling one course, our SaaS platform work is the better fit. The building blocks are the same.
What drives the cost and timeline
We do not quote numbers for a platform we have not scoped. The biggest cost lever is how much of the "build later" list you insist on shipping at launch.
| Feature | Relative effort | Why |
|---|---|---|
| Course structure, accounts, progress | Low | Standard data modelling and UI |
| Video via a managed service | Low to medium | Integration, upload flow, playback tokens |
| One-time purchases with webhooks | Medium | Fulfilment, refunds, reconciliation |
| Subscriptions and tiers | Medium to high | Plan changes, failed payments, entitlements |
| Quizzes and certificates | Medium | Question types, grading, PDF generation |
| Team licences and seats | High | Organisations, invites, admin roles, invoicing |
| Community and discussion | High | Moderation, notifications, abuse handling |
| Native mobile apps | High | A second and third client to build and maintain |
Every "while we are at it" feature, whether a forum, an affiliate programme or live cohorts, is another chunk of time. Shipping narrow is worth more than any framework choice. If you sell into schools, universities or corporate training, our education industry page covers the extra requirements those buyers tend to bring.
Common mistakes to avoid
- Building your own video pipeline. Almost never right for an MVP. Use a managed service and revisit only if volume justifies it.
- Granting access from the browser only. The classic "I paid and got nothing" bug. The webhook is the source of truth.
- Treating access as a manual flag. Derive it from payment state so refunds and lapsed subscriptions take effect on their own.
- Checking access in the UI but not on the server. Hidden buttons do not protect lesson pages or video URLs.
- Over-investing in DRM. Reasonable protection, then stop.
- Skipping admin tooling. Without a button to refund a student or fix an enrollment, support becomes someone editing production by hand late at night.
- Forgetting captions. They matter for accessibility and for students watching on mute.
Where to start
- Decide what you sell: individual courses, a subscription catalogue or both.
- Model courses, lessons, enrollments and progress.
- Integrate a managed video service with signed playback.
- Wire up checkout and webhook-driven fulfilment, including refunds.
- Build the student player, progress tracking and a minimal admin area.
- Launch to a small group, watch where students drop off, then add quizzes, certificates or community based on what they ask for.
Build the smallest course platform that nails one loop: a student pays, logs in and watches the lesson they paid for, reliably, on any device. This is exactly the kind of product we build. If you want a second opinion on your scope before committing a budget, get in touch and we will tell you what version one really needs.
FAQ · 05 questions
Frequently asked questions
Should I build my own course platform or use Teachable, Kajabi or Thinkific?
Start on a hosted platform if you are validating a single course, because it gets you selling in days. Build your own when you need pricing, branding, integrations or data ownership those tools cannot give you, when courses are part of a larger product, or when per-transaction fees have become a meaningful cost at your volume.
How do I host video for an online course?
Use a managed video service that handles upload, transcoding, adaptive bitrate streaming and CDN delivery, and returns a player-ready stream. Avoid serving a single large MP4 from storage, because it buffers on slow connections and is trivial to hot-link or download.
How do I stop people sharing or downloading my course videos?
Serve video through signed, expiring playback URLs, disable direct downloads for paid lessons and consider a visible watermark with the viewer's email. That stops casual sharing. Nobody can fully stop a determined person recording their screen, so match the protection to the value of the content.
Do I need SCORM for an online course platform?
Only if you sell to companies that want to load your courses into their own learning management system. For direct-to-consumer courses, SCORM support adds work without benefit, so leave it out of the MVP and add it if corporate buyers ask.
Should my course platform have a mobile app?
Not at first. A responsive web app or progressive web app works well for watching lessons on a phone and avoids app store fees and review cycles. Add native apps once you know students want offline viewing or mobile-specific features.