# Vibe Coding Tutorial: Build a Habit Tracker App With Login and Payments (Timed: 41 Minutes)

This vibe coding tutorial builds a habit tracker app with login, a free plan and Stripe payments, without writing code. If you have an app idea but no developer, this is how to get from prompt to paying users yourself.

*Updated 27 November 2026*

It took two rounds in AladdinX: 17 minutes for the app, then 24 minutes for accounts and payments.

We also exported a habit tracker built the same way to GitHub, and three AI coding agents each added a new feature to it from one prompt.

This tutorial goes deeper on one of the builds from our guide on [how to use vibe coding](https://aladdinx.app/blog/how-to-use-vibe-coding).

**Disclosure:** I work at [AladdinX](https://aladdinx.app/) (formerly vibeX), an AI app builder.

| Tool | Plan used |
| --- | --- |
| AladdinX | Paid |

## Vibe coding tutorial tip: write your business rules before the first prompt

Most tutorials start with the screens. It helps to start with the business rules instead: who can sign up, what's free, what's paid and who can see what. These rules decide how the app stores its data, and changing that later is much harder than changing a screen.

| Rule | Our habit tracker |
| --- | --- |
| Who signs up | Anyone with an email address |
| Free limit | 3 habits |
| Price | $4/month Pro plan |
| What the admin sees | Payments, refunds and subscriptions |
| What users must never see | Other users' habits |

**Try this:** write these five lines for your own app before you open the builder.

## Key takeaways

- A working habit tracker took 17 minutes, from first prompt to working preview.
- Adding login, a 3-habit free plan, a $4/month Pro plan and Stripe checkout took 24 more minutes: 2 to read the plan, 22 to build.
- Reading the plan first showed an assumption (no email verification) that we could change before building.
- A habit tracker exported from AladdinX ran outside the builder, and Claude Code, GitHub Copilot and Cursor each added a CSV export to it.
- AladdinX built an admin back office for payments, refunds and subscriptions without being asked.

## What you'll build in this vibe coding tutorial

| Round | Features | Time |
| --- | --- | --- |
| 1\. The app | Habits with an emoji and a daily goal, daily check-ins, streaks, a weekly chart, a celebration when all habits are done | 17 min |
| 2\. The product | Sign-up and login, habits saved per account, a Free plan limited to 3 habits, a $4/month Pro plan with Stripe checkout, an account page | 24 min |

## What you need before you start vibe coding

- **An AladdinX account** with enough credits for two builds. Big features like login and payments use more credits than small edits.
- **About an hour**, including time to test.
- **A Stripe account** for payments. Run a test checkout yourself before you invite real users.

## Step 1: Write your first vibe coding prompt in 5 parts

A good first prompt covers five things:

1. **Who it's for:** people building daily routines
2. **What it does:** add habits, check in, see streaks and progress
3. **Extras:** a celebration when everything is done
4. **Look and feel:** soft colors, rounded cards, big tap targets
5. **Ask for a plan:** before any code is written

Example prompt in that shape:

```plaintext
Build a mobile-first habit tracker for people building daily routines. Users add habits with an emoji and a daily goal, tap to check in, and see their current streak and a weekly progress chart. Show a short celebration when every habit is done for the day. Use soft pastel colors, rounded cards and large tap targets. Before building, show me a plan and list any assumptions you make.
```

**Watch out for:** don't ask for login and payments in the first prompt. Get the app working first, then add the business side in round two.

## Step 2: Read the plan before AladdinX builds

AladdinX first asks what you're building (website, mobile web, game, 3D, slides and more), then writes a plan in **Plan** mode. Nothing is built until you click **Develop**.

Read it for two things:

- **Features:** is everything you asked for there?
- **Assumptions:** what did it decide for you?

In our round two, the plan said it would skip email verification. Because we read the plan first, we could change that before any code was written.

## Step 3: Build and test the habit tracker app (17 minutes)

Round one took 17 minutes from prompt to a working preview, planning included. AladdinX also added extras: example habits, a desktop layout and two AI helpers.

Test it the way a user would:

- Add a habit and tap it until the daily goal is reached
- Reload the page and check your habits are still there
- Open it on a phone-sized screen

If something is wrong, reply with only that problem. One fix per prompt is easier to check.

## Step 4: Add login, a free plan and payments (24 minutes)

Round two turns the app into a product. This is the step that tells you whether your idea works: people can now sign up, come back and pay.

Example prompt:

```plaintext
Turn this into a product: email sign-up and login, habits saved per account, a Free plan limited to 3 habits and a $4/month Pro plan with checkout. Show me the plan first.
```

Reading and approving the plan took about 2 minutes. The build took 22 minutes and produced:

- Sign-up and login, with habits saved per account
- A "2 of 3 habits" indicator on the Free plan
- A pricing page, Stripe checkout and a thank-you screen
- An account page with renewal date, cancel and resume
- An admin back office for payments, refunds, subscriptions and plans, with CSV export
- A one-time import for habits saved before accounts existed

**Tip:** you don't have to watch. AladdinX's prompt queue runs your prompts one after another, so you can queue the next request and check results later.

> **What's included in AladdinX**
>
> - **From the pricing page:** Pro costs $39 a month, or $31 billed yearly, with 390 credits and up to 10,000 visitors a month.
> - **Tested in this build:** Plan and Develop modes, the prompt queue, Stripe connection from settings, an admin back office for payments and refunds, and hand-off notes.
> - **Tested after the build:** export to GitHub, then editing with Claude Code, GitHub Copilot and Cursor.

## Step 5: Connect Stripe payments and test checkout

AladdinX connects to Stripe from the app settings, so you don't paste secret keys into your prompts.

When the build finished, AladdinX's hand-off notes listed what to test ourselves:

- Sign-up
- The one-time habit import
- The free-plan limit (try adding a 4th habit)
- A test checkout

It also suggested what to add next: password reset and account deletion.

Before you invite real users, run the checks in our [vibe coding pros and cons](https://aladdinx.app/blog/vibe-coding-pros-cons) test, starting with a second test account.

## Step 6: Hand the code to a developer or AI coding agent

AladdinX can also export the code, so a developer can take over:

1. Open the code panel (the `</>` icon) and click **GitHub Connection**. AladdinX creates a private GitHub repo and pushes the code. You can also click **Download app**.
2. Open the repo in GitHub Codespaces or on a computer, then run `npm install` and `npm run dev`.

We exported a habit tracker this way and gave three AI coding agents the same task: add an "Export my habits" button that downloads a CSV file.

| Coding agent | Time | Files changed | Checks passed | Stood out for |
| --- | --- | --- | --- | --- |
| Claude Code | ~1 min | 1 | 5 of 5 | Fastest, no permission prompts |
| GitHub Copilot | ~1.5 min | 1 | 5 of 5 | Worked on the free plan |
| Cursor | ~3 min | 1 | 5 of 5 | Tested its own change in a browser |

## How long does it take to build a habit tracker app with vibe coding?

About 41 minutes of building in our test:

| Stage | Time |
| --- | --- |
| Round 1: prompt to working app | 17 min |
| Round 2: reading the plan | ~2 min |
| Round 2: building login and payments | 22 min |
| **Total** | **~41 min** |

Testing took extra time on top of that. Plan for an afternoon if it's your first build.

To see how other builders handled the same brief, read our [best vibe coding tools](https://aladdinx.app/blog/best-vibe-coding-tools) test.

## Common problems in this tutorial, and how to fix them

| Problem | Fix |
| --- | --- |
| Something doesn't work after a build | Describe what you clicked, what you expected and what happened, and ask the AI to explain the cause before it changes anything |
| You see an error message | Paste the exact message into your next prompt |
| Several things are broken | Fix one problem per prompt, and test again after each fix |
| The app is empty, so you can't test it | Ask for realistic sample data, such as a few example habits |

## A second vibe coding example: an internal blog CMS

The same steps work for tools your own team uses:

> **Case study: an internal blog CMS built without code**
>
> In November 2026, Anh (Anna) Nguyen, the SEO/GEO specialist at AladdinX, built the company's blog CMS in AladdinX without writing any code. She planned it in Claude, which wrote 15 build prompts, then built it in AladdinX in under two days.
>
> The CMS has 3 user roles (admin, editor and viewer), admin approval for new accounts, English and Korean content, and sign-up limited to company email addresses.
>
> **The problems it solved:**
>
> 1. **SaaS bills keep adding up.** The CMS replaced a subscription that cost over $500 a year.
> 2. **Internal tools pull developers off the product.** The developer hand-off was quick, and the CMS hasn't needed a fix since.
> 3. **Only engineers can build software.** Someone who had never coded built it, fast.
> 4. **You wait on a vendor's roadmap.** New features now ship on the team's own schedule.
> 5. **Off-the-shelf tools don't fit how your team works.** It has the team's own roles, two languages and a large writing area.
> 6. **Your data lives in someone else's product.** The team owns the tool and its data.
> 7. **Building eats the builder's day.** She queued prompts and let them run while she worked.

New to the idea? Start with our explainer on [what vibe coding is](https://aladdinx.app/blog/vibe-coding).

## FAQ

### Why write business rules before the first prompt?

The first build decides how data is stored. In our round two, the plan listed each rule before anything was built, so we could check them first.

### What business rules should you write down?

Who signs up, the free limit, the price, what the admin can see, and what users must never see.

### How long does it take to build a habit tracker app with vibe coding?

In our test, about 41 minutes of building: 17 minutes for the app and 24 minutes for login and payments, plus time to test.

### Do I need to know how to code for this tutorial?

No. You describe the app in plain language, read the plan and test the result. You only need code skills if you want to edit the exported code yourself.

### Can I add payments to a vibe-coded app?

Yes. In our test, AladdinX added Stripe checkout, a pricing page and an account page with cancel and resume in one build. Connect Stripe in the app settings and run a test checkout before real users sign up.

### What is AladdinX?

AladdinX (formerly vibeX, [vibe-x.app](https://aladdinx.app/)) is an AI app builder: you describe an app in plain language, and it plans and builds it with sign-up, payments and publishing. It has separate Plan and Develop modes and a prompt queue.

---

*Build timed on 19 November 2026; coding agent test on 25–26 November 2026. AI builders change often.*

*Written by* [*Anh (Anna) Nguyen*](https://aladdinx.app/blog/author/anna-nguyen)*, SEO/GEO Specialist at AladdinX. Anna writes about vibe coding and AI app builders.* [*LinkedIn*](https://www.linkedin.com/in/anh-nguyen-0340b7252)
