Ai Coding Tools

How to Use Cursor and GitHub Copilot to Code a Simple App in 1 Hour

By BTW Team3 min read

How to Use Cursor and GitHub Copilot to Code a Simple App in 1 Hour

If you're an indie hacker or a solo founder, you know that time is precious. Building a simple app can feel overwhelming, especially when you’re juggling multiple side projects. The good news? With tools like Cursor and GitHub Copilot, you can streamline your coding process and create a functional app in just one hour. In this guide, I'll walk you through how to leverage these tools effectively, based on our experiences and what actually works.

Prerequisites

Before diving in, ensure you have the following:

  • Cursor: A code editor that enhances your coding experience with AI assistance. You can download it for free or opt for the pro version at $25/month.
  • GitHub Copilot: An AI pair programmer that suggests code snippets as you type. Pricing starts at $10/month after a free trial.
  • A basic understanding of JavaScript or Python (depending on your app choice).
  • Access to GitHub for version control.

Step 1: Setting Up Your Environment

  1. Install Cursor: Download and install Cursor from their website. The installation takes about 5 minutes.
  2. Set Up GitHub Copilot: After installing Cursor, enable GitHub Copilot in the settings. This should take another 5 minutes.
  3. Create a New Project: Open Cursor and create a new project. For this tutorial, we’ll build a simple "To-Do List" app.

Step 2: Initializing Your App

  1. Create Basic Files: In your new project, create the following files: index.html, style.css, and app.js.

  2. HTML Structure: Use GitHub Copilot to generate the basic HTML structure. Start typing <!DOCTYPE html> and Copilot will suggest the rest. Accept the suggestion.

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="style.css">
        <title>To-Do List</title>
    </head>
    <body>
        <h1>My To-Do List</h1>
        <input type="text" id="task" placeholder="Add a new task...">
        <button id="addTask">Add Task</button>
        <ul id="taskList"></ul>
        <script src="app.js"></script>
    </body>
    </html>
    
  3. CSS Styling: Use Cursor to write some basic CSS. You can start with something like:

    body {
        font-family: Arial, sans-serif;
        margin: 20px;
    }
    

Step 3: Coding the Functionality

  1. Add Task Functionality: In app.js, start coding the functionality to add tasks. Begin by typing function addTask() { and let Copilot complete the function. You might get something like:

    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 = '';
    }
    
  2. Attach Event Listener: Don’t forget to attach the event listener to your button. Just type document.getElementById('addTask').addEventListener('click', addTask); and let Copilot suggest the rest.

Step 4: Testing Your App

  1. Run Your App: Open index.html in your browser. You should see your To-Do List app.
  2. Add Tasks: Test adding a few tasks to see if everything works as expected. If it doesn't, check the console for errors.

Troubleshooting

  • Common Issues: If you don't see your tasks being added, check if you have correctly attached the event listener.
  • Debugging Tips: Use the browser's developer tools (F12) to inspect elements and view console messages.

What's Next?

Now that you have a basic To-Do List app, consider expanding its functionality. You could add features like task deletion, storage with local storage, or even user authentication if you're feeling ambitious.

Conclusion

Building a simple app like a To-Do List in just one hour is entirely possible with the right tools. Cursor and GitHub Copilot can significantly reduce your coding time and help you focus on what really matters—shipping your product. Start with these steps, and don’t hesitate to iterate and expand your app as you learn.

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

The $100 Stack: AI Coding Tools for Budget-Conscious Developers

The $100 Stack: AI Coding Tools for BudgetConscious Developers As a budgetconscious developer, you might feel overwhelmed by the plethora of AI coding tools available today. The pr

Jul 17, 20264 min read
Ai Coding Tools

Why ChatGPT for Code Review is Overrated: Unpacking the Myths

Why ChatGPT for Code Review is Overrated: Unpacking the Myths As a solo founder or indie hacker, you're always on the lookout for tools that can make your life easier and your code

Jul 17, 20264 min read
Ai Coding Tools

How to Build a Simple Chatbot with AI in 30 Minutes

How to Build a Simple Chatbot with AI in 30 Minutes Building a chatbot can seem daunting, especially if you're new to coding or AI. But what if I told you that you could create a s

Jul 17, 20264 min read
Ai Coding Tools

AI Coding Tool Comparison: GitHub Copilot vs Cursor for 2026

AI Coding Tool Comparison: GitHub Copilot vs Cursor for 2026 As a solo founder or indie hacker, we often find ourselves juggling multiple tasks—coding, debugging, and shipping prod

Jul 17, 20264 min read
Ai Coding Tools

How to Use GPT-4 to Build Your First App in 2 Hours

How to Use GPT4 to Build Your First App in 2 Hours Ever thought about building your own app but felt overwhelmed by the complexity? You're not alone. Many indie hackers and solo fo

Jul 17, 20264 min read
Ai Coding Tools

Why AI Coding Tools Are Overrated: A Closer Look

Why AI Coding Tools Are Overrated: A Closer Look As we dive into 2026, the hype surrounding AI coding tools has reached a fever pitch. Everyone seems to be buzzing about how these

Jul 17, 20264 min read