Ai Coding Tools

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

By BTW Team4 min read

How I Built a Simple Web App Using Cursor in 2 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.

Follow Our Building Journey

Weekly podcast episodes on tools we're testing, products we're shipping, and lessons from building in public.

Subscribe

Never miss an episode

Subscribe to Built This Week for weekly insights on AI tools, product building, and startup lessons from Ryz Labs.

Subscribe
Ai Coding Tools

How to Build Your First Web App in 4 Hours Using AI Tools

How to Build Your First Web App in 4 Hours Using AI Tools Building your first web app can feel like a daunting task, especially if you're a beginner. The good news? In 2026, AI too

Jun 13, 20264 min read
Ai Coding Tools

Fixing the 7 Biggest Mistakes Developers Make with AI Coding Tools

Fixing the 7 Biggest Mistakes Developers Make with AI Coding Tools (2026) As developers, we often find ourselves caught up in the excitement of the latest AI coding tools. They pro

Jun 13, 20264 min read
Ai Coding Tools

5 Best AI Coding Tools to Simplify Your Workflow in 2026

5 Best AI Coding Tools to Simplify Your Workflow in 2026 As a solo developer, juggling multiple projects can feel like an uphill battle. Between debugging, writing code, and managi

Jun 13, 20264 min read
Ai Coding Tools

How to Use GitHub Copilot to Slash Coding Time by 50% in 2026

How to Use GitHub Copilot to Slash Coding Time by 50% in 2026 As a solo founder or indie hacker, you know that time is your most valuable asset. Every minute spent coding can feel

Jun 13, 20263 min read
Ai Coding Tools

How to Write Code with AI in Under 30 Minutes: A Step-by-Step Guide

How to Write Code with AI in Under 30 Minutes: A StepbyStep Guide Have you ever felt overwhelmed by a coding task, wishing you had an extra pair of hands—or a genius AI to help you

Jun 13, 20264 min read
Ai Coding Tools

Why GitHub Copilot is Overrated: 5 Key Drawbacks You Should Know

Why GitHub Copilot is Overrated: 5 Key Drawbacks You Should Know As we dive deeper into 2026, the buzz around AI coding tools like GitHub Copilot continues to grow. Many developers

Jun 13, 20264 min read