Ai Coding Tools

How I Built a Simple Web App Using Cursor in 2 Hours

By BTW Team4 min read

Comparing tools? See the AI tools tested on the show.

In short

A hands-on tutorial that showcases my step-by-step process of using Cursor, an AI coding tool, to develop a functional web application in just two hours.

Building a web app can often feel like a daunting task, especially if you’re a solo founder or indie hacker juggling multiple projects. I recently faced this challenge and, with the help of Cursor—a powerful AI coding tool—I managed to whip up a simple web app in just two hours. Here’s how I did it, including the tools I used, the steps I followed, and the lessons I learned along the way.

Prerequisites: What You Need to Get Started

Before diving into the build, here’s what you’ll need:

  • A Cursor Account: Sign up for a free account at Cursor. They offer a free tier, which is sufficient for this project.
  • Basic Knowledge of HTML/CSS/JavaScript: You don’t need to be a pro, but a foundational understanding helps.
  • Code Editor: I recommend using Visual Studio Code, which is free and feature-rich.
  • Node.js: Install Node.js if you want to handle backend processes. It’s free and essential for running JavaScript on the server side.

Step 1: Setting Up Your Environment

Setting up your development environment took me about 20 minutes. Here’s a quick rundown:

  1. Install Visual Studio Code and set it up for your project.
  2. Create a new folder for your web app.
  3. Initialize a new Node.js project with npm init -y.

Expected Output:

After this step, you should have a folder with a package.json file ready for dependencies.

Step 2: Using Cursor to Generate Code

This is where Cursor truly shines. I used its AI capabilities to generate the basic structure of my web app. Here’s how:

  1. Open Cursor and create a new file for your main application logic.
  2. Use prompts like “Create a simple HTML page with a form” and “Add a JavaScript function to handle form submissions.” Cursor quickly generates code snippets for you.

What I Built:

I ended up with a simple app that collects user input and displays it on the same page. This took about 30 minutes, thanks to Cursor's assistance.

Step 3: Testing the Application

Once the code was generated, I tested the app locally. Here’s how:

  1. Run the app using node server.js (assuming you set up a basic server).
  2. Open your browser and navigate to http://localhost:3000.

Troubleshooting Tips:

  • If the app doesn’t load, double-check your server configuration and ensure you have all necessary dependencies installed.

Step 4: Deploying Your Web App

For deployment, I chose Vercel, which integrates seamlessly with Node.js apps. Here’s the process:

  1. Create a Vercel account (free tier available).
  2. Connect your GitHub repository (if you’re using one).
  3. Deploy your app with one click.

Expected Outcome:

Your web app should now be live and accessible via a unique URL.

Step 5: What Worked and What Didn’t

What Worked:

  • Cursor: The AI tool saved me a ton of time by generating boilerplate code.
  • Vercel: Simple deployment process made going live a breeze.

What Didn’t Work:

  • Limited Customization: While Cursor offers great starting points, I found that more complex features required manual tweaking.
  • Learning Curve: If you're not familiar with JavaScript, you might struggle to understand the generated code.

Pricing Breakdown

Here’s a quick look at the tools I used:

| Tool | Pricing | Best For | Limitations | |--------------|-------------------------------|------------------------------|-----------------------------------------| | Cursor | Free tier + $19/mo for Pro | Code generation | Limited customization; learning curve | | Vercel | Free tier; $20/mo for Pro | Deployment | May get expensive at scale | | Visual Studio Code | Free | Code editing | None | | Node.js | Free | Server-side JavaScript | None |

Conclusion: Start Here

If you're looking to build a web app quickly, I highly recommend giving Cursor a try. It significantly speeds up the coding process, allowing you to focus on refining your idea rather than getting bogged down in syntax. Start with the free tier, and if you find it useful, consider upgrading for more features.

What We Actually Use: For quick web app builds, our stack is Cursor for coding, Vercel for deployment, and Visual Studio Code for editing. This combination keeps our workflow efficient and cost-effective.

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools
Ai Coding Tools

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them)

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them) In the everevolving landscape of AI coding tools, it's easy to get swept up in the hype. As indie hackers and s

Nov 30, 20263 min read
Ai Coding Tools

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026 In 2026, the landscape for indie hackers and solo founders has evolved significantly, especially with the advent

Nov 26, 20264 min read
Ai Coding Tools

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026 If you’re a developer stuck maintaining legacy code, you know the frustration. It’s like navigating a maze blindfolde

Nov 23, 20264 min read
Ai Coding Tools

10 AI Coding Tools That Will Save You Hours of Debugging in 2026

10 AI Coding Tools That Will Save You Hours of Debugging in 2026 Debugging can feel like a neverending cycle of frustration. Whether you're a solo founder or an indie hacker, spend

Nov 18, 20265 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for MVP Development

10 Common Mistakes When Using AI Coding Tools for MVP Development As a founder in 2026, you’re likely aware that AI coding tools can significantly speed up the MVP development proc

Nov 16, 20264 min read
Ai Coding Tools

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026 As a beginner developer, you’ve probably come across a ton of buzz surrounding AI coding tools. But with all the hyp

Nov 12, 20263 min read