Ai Coding Tools

How to Use Cursor: Build a Simple App in 2 Hours

By BTW Team4 min read

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

In short

A step-by-step guide to using Cursor AI to build a basic application in just two hours, perfect for new developers.

Building an app can often feel like a daunting task, especially if you're a solo founder or indie hacker without a technical background. But what if I told you that you could build a simple app in just two hours using Cursor, an AI coding tool that helps you write code faster and more efficiently? In this guide, I'll walk you through the steps, share my experiences, and provide practical insights to help you get started with Cursor in 2026.

Prerequisites: What You Need Before You Start

Before diving in, make sure you have the following:

  • A Cursor account: Sign up for free at Cursor's website.
  • Basic understanding of programming concepts: Familiarity with JavaScript or Python will help, but Cursor does a lot of the heavy lifting for you.
  • A code editor: I recommend using Visual Studio Code, which is free and widely supported.

Step 1: Set Up Your Environment

First, you'll want to set up your development environment. Here’s how to do it:

  1. Install Visual Studio Code: Download and install it from here.
  2. Install Cursor: Follow the instructions on Cursor’s website to integrate it with Visual Studio Code.
  3. Create a New Project: Open the terminal in Visual Studio Code and create a new folder for your app.

Expected output: You should see a new folder created for your project.

Step 2: Define Your App Idea

Next, decide what kind of app you want to build. Keep it simple! For this tutorial, let's create a basic "To-Do List" app that allows users to add, delete, and view tasks.

Step 3: Use Cursor to Write Your Code

Here’s where the magic happens. With Cursor, you can generate code snippets based on prompts. Here’s how to do it:

  1. Open Cursor: In your VS Code, open the Cursor panel.
  2. Generate Code: Type a prompt like "Generate a simple To-Do List app in JavaScript."
  3. Review and Adjust: Cursor will provide you with a code snippet. Review it for accuracy and adjust any parts as necessary.

Expected output: You should have a basic structure for your To-Do List app, including HTML, CSS, and JavaScript.

Step 4: Test Your App

After you’ve generated the code, it’s time to test your app:

  1. Open your HTML file in a browser: Right-click on the HTML file and select "Open with Live Server."
  2. Add tasks: Use the input field to add tasks to your list.
  3. Delete tasks: Implement the delete functionality using Cursor-generated code.

Expected output: You should see your To-Do List app functioning in the browser.

Troubleshooting: What Could Go Wrong

While using Cursor, you might encounter some issues. Here are common pitfalls and their solutions:

  • Code Errors: If you run into JavaScript errors, check the console for messages that can guide you to the problem.
  • Styling Issues: If your app doesn’t look right, revisit the CSS section and adjust the styles.
  • Functionality Issues: If tasks aren’t being added or deleted, double-check the associated JavaScript functions.

What's Next: Build on Your Foundation

Once your To-Do List app is up and running, consider these next steps:

  • Add User Authentication: Use Firebase for a simple user login system.
  • Implement a Database: Store tasks in a database like MongoDB or Firebase Firestore.
  • Enhance UI/UX: Use frameworks like Bootstrap or Tailwind CSS to improve the design.

Conclusion: Start Here

If you're looking to build a simple app quickly, Cursor is a solid choice. In about two hours, you can create a functional To-Do List app that can serve as a foundation for more complex projects. Remember, the key is to keep your app idea simple and leverage Cursor's capabilities to speed up your coding process.

What We Actually Use: For quick prototyping, we often rely on Cursor for generating code snippets, along with Visual Studio Code as our primary editor.

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