Learn the three parts of an app, then put yours where anyone can reach it.
Kevin Lenida
00:00
until we start
The link works on everyone's phone, not just yours.
The problem
Two places an app can live
On your computer
Only you can open it.
It stops when you close the laptop.
You cannot send it to anyone.
On the internet
Anyone with the link can open it.
It runs without your laptop.
You send one link.
What we build
One poll, one link
One question — and four possible answers.
One link — everyone in this room opens the same one.
One screen — the count moves here as you vote.
Keep this app in mind. The three parts we name next all belong to it.
01
The Three Parts
Three parts, and what each one is for.
Three Parts
The path one vote takes
Three Parts
What each part does
Frontend — the part you see. It sits on their phone, so you cannot hide a secret there.
Backend — the part that thinks. Visitors cannot change it, so your rules live there.
Database — the part that remembers. It keeps the votes after everyone leaves.
You need all three. Drop one and the app cannot work.
Three Parts
You do not always need all three
Frontend only — nothing to remember, nothing to hide. A menu, a portfolio, a calculator.
Frontend and backend — you hold a secret or a rule, but you store nothing. A form that emails you.
All three — something must survive after the visitor leaves. Votes, bookings, accounts.
Add a part only when you must. Our poll needs all three, because the votes must survive.
02
Meet Cloudflare
Who they are, and what they call the three parts.
Meet Cloudflare
What Cloudflare is
A network of computers — Cloudflare runs them in hundreds of cities.
It keeps websites fast and safe — this is what most people know it for.
It also runs your code — the same computers can host your own app.
We use Cloudflare because it gives you all three parts in one place, and today it costs nothing.
Meet Cloudflare
Not the only one
You may know Vercel or Netlify — they solve the same problem.
You can build all three parts on any of them — the page, the backend, and the database.
We use Cloudflare today — one tool does all of it, and the free plan covers a room this size.
What you learn today carries over. Only the names change.
Cloudflare Names
The same path, renamed
Cloudflare Names
Pick the right store
D1 — a table you can ask questions of. Count, sort, filter.
KV — one value for one name. Very fast to read, slow to update.
R2 — files. Photos, uploads, video.
We use D1. We must count votes, and the count must be right at once.
03
What You Need
Set it up one time. Then never think about it again.
What You Need
Three things, one time
A Cloudflare account — free. An email address and a password.
Node.js — one installer. Wrangler needs it to run.
Wrangler — Cloudflare's command tool. Install it once, then log in through your browser.
Install Wrangler once for the whole computer, not for each project. Then forget it.
What You Need
Only one of these deploys your app
Wrangler — builds your app and sends it out. This is the one you use today.
A Cloudflare MCP — lets your AI agent read the docs. Some can change your account too.
The Cloudflare API — what scripts use when no person is there. The other two call it underneath.
Guides mix all three and that is why they confuse people. Today, only Wrangler runs.
What You Need
What the free plan gives you
The page — unlimited visits. Files cost nothing at all.
The backend — 100,000 requests a day.
The database — 5 GB of storage, and 5 million reads a day.
The web address — a free one, on workers.dev.
You do not enter a card. Correct as of August 2026.
04
Build It Live
We build the poll now. Then you all vote from your seats.
Build It Live
How the live part works
You open the link. You tap one option. The count moves on this screen.
Build It Live
You describe it. Claude builds it.
Kevin
Build a poll. One question, four options. Everyone in this room votes from their phone, and the count updates on the screen. Put it on the internet.
Claude
Done. The page people see, the code behind it, and a database for the votes. It is live — here is the link.
Build a live poll and put it on the internet with Cloudflare.
One question with four fixed options. Anyone who opens the link votes from their phone, and the results show as a bar chart that updates about once a second.
Use a Worker for the code, static assets for the page, and D1 for the votes. Plain JavaScript, no build step, no starter template.
Show a QR code of the page's own address on wide screens only, generated at runtime from location.origin so it is never hardcoded. Stop asking for results while the tab is hidden.
Recap
What we covered
An app has up to three parts: a frontend, a backend, and a database.
Cloudflare calls the three parts Static Assets, a Worker, and D1.
Choose D1 for records, like votes or bookings.
Wrangler builds your app and sends it out. You need nothing else today.
Your turn
Before next session
Change one thing in your poll. New question, new options, new colours.
Send the link to three people who were not in this room.
Watch the count move from your own phone.
Remember: the link is the proof. If a stranger can open it, you shipped it.
Your app needs three parts. Cloudflare gives you all three for free.