How to Vibe Code an App: From Idea to a Working App
A website shows people something. An app lets people do something — and that one difference changes how you build it.
A website is finished when it looks right. An app is finished when it works right — when every button does what it promises, every form saves what you typed, and the list on the screen changes the moment you do something.
This post walks you through the whole journey, from a bare idea to a working app, using one running example: a simple to-do app. The method is tool-neutral. The term "vibe coding" was coined by Andrej Karpathy in February 2025. If the idea is new to you, What Is Vibe Coding? explains it, and How to Vibe Code: Step-by-Step Guide for Beginners walks through the workflow. This post teaches the app workflow — data, actions, saving and testing.
Karpathy later described the shift as 'agentic engineering' in a February 2026 post, and Collins Dictionary named 'vibe coding' its Word of the Year for 2025
Table of contents
- What makes an app different from a website
- Start with one idea and a one-paragraph spec
- Pick a tool to build with
- Your first prompt — copy it as it is
- Forms: where your app takes in data
- Lists that update: the heart of an app
- Saving: make your app remember
- Test every button before you call it done
- Fixing what breaks
- Finishing and sharing your app
- Frequently asked questions
- What to read next
What makes an app different from a website
A website is a page people read; an app is a tool people use, where the user types, adds and deletes and expects the screen to react at once. That is why an app prompt must say what happens on every click, not just what the page looks like.
On a website, the visitor reads, scrolls and clicks links. In an app, the user types, adds, deletes, checks things off and expects the screen to react at once.
That is why app prompts need a second half that website prompts do not. A website prompt says what the page looks like. An app prompt must also say what happens when the user does something: "When I click Add, the task appears in the list." "When I tick the checkbox, the task gets a line through it and moves to the bottom."
| A website | An app | |
|---|---|---|
| What the visitor does | Reads, scrolls, clicks links | Types, adds, deletes, checks things off |
| What makes it finished | It looks right on a laptop and a phone | Every button does what it promises |
| What the prompt must say | The layout, the colours, the words | The layout plus what happens on every click |
| What can go wrong | A heading is too big, a colour is wrong | A button does nothing, a form forgets what you typed |
| What you test | How it looks on two screen sizes | How it behaves — click everything, type everything |
The app workflow is a pattern, and once you learn it on a to-do app, it repeats. A habit tracker is a to-do app with checkboxes and a streak count. An expense tracker is a to-do app with a form for amounts and a total at the top. The names change; the pattern — form, list, actions, saving, testing — stays the same.
The same pattern is why the tutorials start with a to-do app and repeat it for a habit tracker and an expense tracker — form, list, actions, saving, testing, in the same order every time.
Start with one idea and a one-paragraph spec
Most beginner apps fail at this step — not because the idea is bad, but because there are ten ideas at once. Pick one idea and shrink it until it fits in one paragraph.
Our idea is this: a to-do app for one person, to plan their day. Just a list of tasks for today, with a way to add them, mark them done and delete them.
Now write the spec: a short paragraph that says what the app is, who it is for, what it looks like and what it must do. Here is the spec for our to-do app:
"My Tasks is a to-do web app for one person, to plan their day. It has a text box and an Add button at the top, a list of tasks below, and each task has a checkbox to mark it done, a delete button, and a choice of High, Medium or Low priority. High priority tasks show first, and finished tasks move to the bottom of the list with a line through them. Tasks must still be there when I close the page and come back. Simple design — white background, blue buttons, dark text."
It names the app, says who it is for, and lists the parts in the order the user meets them. It states the two sorting rules, and it says the tasks must be saved — without that line, some tools build an app that forgets everything on refresh.
Pick a tool to build with
Pick one tool and stick with it for this build. Switching tools halfway means starting over, because each tool keeps its own copy of your app.
Lovable is the friendliest place to start: you describe the app in a chat box, it builds it in front of you, and you keep chatting to change it. Lovable Free gives you 5 credits a day, up to 30 a month, with no card needed, and Lovable Pro is $25/month. Bolt.new is the fastest way to a first working version, and it runs entirely in the browser. Bolt.new Free gives you 300K tokens a day up to 1M a month, and Bolt.new Pro is $25/month. Replit Agent builds, stores and publishes in one place, which suits an app that needs saving — Replit Core is $20/month. Prices checked 1 December 2026; for anything else, check the pricing page.
All three can build this to-do app, and the prompts in this post are written in plain words, so they work in any of them. Start free: a to-do app fits comfortably inside the free plans.
v0 by Vercel is the strongest tool when the interface matters most, and Cursor is an AI code editor for the day you want to open the code and edit it yourself — both are later steps, not first ones.
Your first prompt — copy it as it is
Your first prompt is your spec, turned into an instruction. Copy it, change the name and colours if you like, and send it:
Build a to-do web app called "My Tasks". It is for me, to plan my day. It should have a text box and an Add button at the top, a list of tasks below, and each task should have a checkbox to mark it done, a delete button, and a choice of High, Medium or Low priority. High priority tasks should show first, and finished tasks should move to the bottom of the list with a line through them. My tasks should still be there when I close the page and come back. Simple design — white background, blue buttons, dark text.
Why this prompt works: it is the spec, word for word, with "Build" at the front. It lists the actions in the order the user meets them, states the two sorting rules, and says the tasks must be saved.
When the first version comes back, do not judge it by the design. Judge it by the behaviour. Type a task, click Add, and see if it appears. Tick the checkbox and see if it moves. A pretty app that forgets your tasks is useless; a plain app that remembers them is already a working app.
Forms: where your app takes in data
A form is the front door of your app: where the user puts something in — a task, a habit, an expense. If the front door is broken, nothing else can work, because there is nothing to show, save or delete.
In our to-do app the form is small: one text box and one Add button. Three rules decide whether it works. First, the text box needs a hint inside it, like "Add a task...", so the user knows what to type. Second, the Add button must do something visible at once: the task appears in the list, and the text box clears itself. Third, if you click Add with an empty box, the app should do nothing, or show a short message like "Type a task first." It should never add a blank task. Add that to your prompt like this:
The Add button should do nothing if the text box is empty. After I add a task, clear the text box so I can type the next one.
The same three rules apply to every form you will ever build — a habit tracker asks for a habit name, an expense tracker asks for what you spent and how much. Learn the form once, and you can build any of them.
Lovable builds a working React app with a database and one-click publishing, and it connects a database such as Supabase when your app needs to remember things between visits.
Lists that update: the heart of an app
The list is where the user spends all their time, and it must change instantly every time the user does something.
In our to-do app, the list has four jobs, each one an action with a visible result. Add a task, and it appears at once. Tick the checkbox, and the task gets a line through it and moves to the bottom. Change the priority, and the task moves up or down. Click delete, and the task is gone at once.
Write the actions into your prompt in the order the user meets them, and write each result as plainly as you can. "When I tick the checkbox, the task gets a line through it and moves to the bottom of the list." That sentence does more work than any design choice in the app.
Sorting is the detail beginners forget and then wonder about. In our spec, high priority tasks show first, and finished tasks sink to the bottom. That is a rule, and rules belong in the prompt, not in your head.
Saving: make your app remember
To save data in a vibe coded app, ask the AI to save it in a database such as Supabase and then test it: add something, refresh the page, and check it is still there. If the data disappears on refresh, say so in one message and ask the AI to save it.
Build an app, add ten tasks, close the page, open it again — and the list is empty. The app did not save anything, because nobody told it to remember.
Saving is the difference between a demo and an app. A demo works while you are looking at it. An app works tomorrow as well. So the saving sentence in your spec is the feature that makes the whole thing real.
For a personal to-do app, the simplest saving is in the browser itself: it keeps your tasks on your own device, so they are still there when you come back, with no account or sign-in needed. Nothing leaves your device, and nothing can leak.
If other people need to use your app, the data lives in a database, and you need to know who can see it. For this to-do app, you do not need any of that. Test saving the way you test everything else: add three tasks, close the page completely, open it again, and count. Three tasks, still there, in the right order, with the right ones ticked. If any of them is missing, the app is not done — no matter how good it looks.
Test every button before you call it done
Testing is part of building: an app is done when every button does what it promises, and the only way to know that is to click every button yourself. Work through a checklist — add, tick, delete, change priority, close and reopen, and test on your phone. If a test fails, send one fix prompt for that one problem only.
Work through this checklist with your to-do app open — do not skip a row because it looks obvious.
| # | What to test | What should happen | If it does not happen |
|---|---|---|---|
| 1 | Type a task and click Add | Task appears at once, box clears | Fix prompt for the Add button only |
| 2 | Click Add with an empty box | Nothing is added, or a short message appears | Ask the AI to block empty tasks |
| 3 | Tick a task's checkbox | Line through it, moves to the bottom | Fix prompt for the checkbox only |
| 4 | Untick a finished task | Line disappears, moves back up | Fix prompt for the checkbox only |
| 5 | Change a task's priority | Task moves to the right place | Ask the AI to fix the sorting rule |
| 6 | Click a task's delete button | Only that task disappears, at once | Fix prompt for the delete button only |
| 7 | Add a task, close the page, reopen it | All tasks still there, in the right order | Ask the AI to fix saving |
| 8 | Open the app on your phone | Box, buttons and list all fit and work | Ask the AI to fix the small-screen layout |
| 9 | Type a very long task | Text wraps neatly, row does not break | Ask the AI to fix long text in the list |
| 10 | Add ten tasks quickly, one after another | All ten appear, none duplicated, none missing | Ask the AI to fix adding tasks quickly |
Test on your phone too — that is where most people will use your app. Add a task, tick one off, delete one.
Fixing what breaks
Something will break. That is not a sign you did anything wrong — it is the normal middle of building. The fix is a prompt too, and a good fix prompt has three things: what you clicked, what you expected, and what actually happened. Write it like this:
When I click the Add button, I expected the task to appear in the list, but nothing happens at all. There is no error message. Please fix only this problem and do not change anything else in the app.
Three sentences, three facts, and one guard at the end: "fix only this problem and do not change anything else." One problem, one fix, one test — then move on to the next problem.
If you see an error message, paste it word for word into the fix prompt. The exact error is the one line the AI can actually diagnose, and with it the fix usually takes one try. Never write "it doesn't work" on its own — the AI cannot see your screen.
Finishing and sharing your app
An app is finished when the testing checklist is all green — every button works, the list updates, the tasks save, and it works on your phone. A plain app that works is finished. A beautiful app with a dead button is not.
Before you share it, run one last check on the data. Our to-do app keeps its tasks in your own browser, so there is nothing to leak — but if you added anything that asks other people for their name or email, run a safety check first.
Then share it. Send the link to one person and watch what they do — not what they say. Do they find the Add button at once? Do they tick a task without being told? Do they try something you never tested?
Lovable publishes to a lovable.app address, Bolt.new to its own hosted link, and Replit hosts the app with its database in the same place — the tool, not you, handles the hosting.
Then build the next one. The to-do app taught you the pattern: one idea, one spec, one form, one list, saving, testing. Your next app is the same pattern with different words. A habit tracker swaps tasks for habits and adds a streak count — and it is built step by step in Build a Habit Tracker with Lovable.
Frequently asked questions
Do I need to know how to code to vibe code an app? No. You describe the app in plain words and the AI writes the code. You need to be able to say what the app should do when someone clicks something.
What is the difference between vibe coding an app and vibe coding a website? A website shows people something; an app lets people do something. An app needs forms that take data in, lists that update when you act, and saving so the data is still there tomorrow.
Which tool should I use for my first app? Start with Lovable or Bolt.new. Lovable Free gives you 5 credits a day, up to 30 a month, with no card needed, and Bolt.new Free gives you 300K tokens a day up to 1M a month. Prices checked 1 December 2026; for anything else, check the pricing page.
Why does my app forget everything when I refresh the page? Because nothing told it to save. Add the saving sentence to your prompt — "My tasks should still be there when I close the page and come back" — and test it by closing the page and reopening it.
How many features should my first app have? As few as possible. One idea, one form, one list, three or four actions. A to-do app with add, tick, delete and priority is enough.
What should I do before I share my app with anyone? Click every button yourself first, using the testing checklist in this post, and test it on your phone. If the app asks other people for their name or email, run a safety check before you publish it.
What to read next
- How to Vibe Code a Website: A Beginner's Step-by-Step Guide — the same workflow applied to a website.
- How to Vibe Code: Step-by-Step Guide for Beginners — the full workflow from first prompt to working app.
- Best Vibe Coding Tools for Beginners — which tool to pick.
- Vibe Coding Tutorials: Build Real Projects — five small projects built the same way.
- How to Use Lovable to Build an App — this post's workflow inside Lovable.
- How to Use Bolt.new to Build an App — this post's workflow inside Bolt.new.
- Build a Habit Tracker with Lovable — the next app to build after the to-do app.
Pick one idea, write its one-paragraph spec, and send your first prompt.
Written by Samiullah Channa, Vibe Coding Guide. Published 1 December 2026.




Comments
Post a Comment