Ai Coding Tools

How to Use Cursor to Code Your First 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 on harnessing the power of Cursor to develop your first simple app within just two hours, perfect for aspiring coders eager to see quick results.

When I first started coding, the idea of building my own app felt like a mountain to climb. The sheer amount of information was overwhelming, and I didn’t know where to start. Fast forward to 2026, and tools like Cursor have made it significantly easier for beginners to dive into coding. If you’re like me and want to create your first app without getting lost in a sea of tutorials, this guide will walk you through using Cursor to build something functional in about 2 hours.

What is Cursor?

Cursor is an AI-powered coding assistant that helps you write code more efficiently. It provides context-aware suggestions, error detection, and even helps with debugging. Essentially, it acts like a co-pilot while you code, making it a fantastic tool for beginners who might feel intimidated by the coding process.

Pricing

  • Free Tier: Limited features, good for trying out the platform.
  • Pro Plan: $19/month, includes full access to AI features and project management tools.

Best For

Cursor is perfect for beginners and indie hackers looking to build simple applications quickly. It’s especially useful if you want to learn by doing rather than just reading tutorials.

Limitations

While Cursor is powerful, it’s not perfect. It may not handle complex algorithms well, and its suggestions can sometimes be off-mark if the context isn’t clear. It’s also not a replacement for learning the fundamentals of coding.

Prerequisites

Before we dive in, here’s what you’ll need:

  • A computer (Windows, macOS, or Linux)
  • An internet connection
  • A free or pro account on Cursor (sign up at Cursor)
  • Basic understanding of programming concepts (variables, functions, etc.)

Step-by-Step Guide to Build Your First App

Step 1: Choose Your App Idea (15 minutes)

Start with a simple app idea. For this tutorial, let’s create a “To-Do List” app. It’s straightforward and covers essential functionality like adding and removing tasks.

Step 2: Set Up Your Environment (15 minutes)

  1. Download Cursor: Go to the Cursor website and download the application.
  2. Create a New Project: Open Cursor and create a new project titled “To-Do List”.

Step 3: Write Your Code (60 minutes)

  1. Create the HTML Structure: Start by defining your HTML layout. You can ask Cursor for help with the basic structure.

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>To-Do List</title>
    </head>
    <body>
        <h1>My To-Do List</h1>
        <input type="text" id="task" placeholder="Add a new task">
        <button onclick="addTask()">Add Task</button>
        <ul id="taskList"></ul>
    </body>
    </html>
    

    Expected Output: A basic webpage layout with an input field and button.

  2. Add Functionality with JavaScript: Cursor can help you with JavaScript code to add tasks.

    function addTask() {
        const taskInput = document.getElementById('task');
        const taskList = document.getElementById('taskList');
        const newTask = document.createElement('li');
        newTask.textContent = taskInput.value;
        taskList.appendChild(newTask);
        taskInput.value = '';
    }
    

    Expected Output: Clicking the button adds the task to the list.

Step 4: Style Your App (20 minutes)

Use CSS to make your app look better. You can ask Cursor for simple styling suggestions.

body {
    font-family: Arial, sans-serif;
}
h1 {
    color: #333;
}
input {
    margin-right: 10px;
}

Step 5: Test Your App (10 minutes)

Open your HTML file in a web browser and test adding tasks. Check if everything works as expected. If you run into issues, Cursor can help debug.

Step 6: Deploy Your App (10 minutes)

You can use platforms like GitHub Pages or Netlify to deploy your app for free. Just upload your files and follow their instructions.

Troubleshooting Common Issues

  • Cursor suggestions are off: Make sure your code context is clear. If the suggestions aren’t relevant, try rephrasing your question.
  • App doesn’t work as expected: Check the console for errors. Cursor can help you debug these issues.

What's Next?

Once you’ve built your To-Do List app, consider expanding its functionality. You might add features like saving tasks to local storage or integrating a backend to store tasks permanently.

Conclusion

Using Cursor to build your first app can be a quick and enjoyable experience. If you follow this guide, you can have a functional To-Do List app running in about 2 hours. Remember, the key is to start small and iterate on your ideas.

Start Here: Sign up for Cursor today, and start building!

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