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

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for Beginners

10 Common Mistakes When Using AI Coding Tools for Beginners As a beginner in coding, diving into AI coding tools can feel like a doubleedged sword. On one hand, these tools promise

Oct 8, 20264 min read
Ai Coding Tools

5 Common Misconceptions About AI Coding Tools and Why They Hold You Back

5 Common Misconceptions About AI Coding Tools and Why They Hold You Back As a solo founder or indie hacker, you might be considering leveraging AI coding tools to boost your produc

Oct 7, 20264 min read