Ai Coding Tools

How to Use GitHub Copilot to Code a Fully Functioning App in 2 Hours

By BTW Team3 min read

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

In short

A step-by-step tutorial on leveraging GitHub Copilot to build a complete application quickly.

If you’re a solo founder or indie hacker, you know that time is your most precious resource. You might be wondering if you can really build a fully functioning app in just 2 hours. With GitHub Copilot, the answer is yes, but there are a few tricks and tips to make the most of this AI coding tool. Here’s how we tackled this challenge, and how you can too.

Prerequisites: What You Need to Get Started

Before diving in, make sure you've got the following:

  • GitHub Account: You’ll need this to access Copilot.
  • Visual Studio Code (VSCode): This is where you'll write your code.
  • GitHub Copilot Subscription: As of 2026, GitHub Copilot costs $10/month after a free trial period.
  • Basic Understanding of JavaScript: While Copilot helps a lot, you still need to know the basics.

Step-by-Step Guide to Building Your App

Step 1: Set Up Your Environment

  1. Install VSCode: Download and install it from the official site.
  2. Install GitHub Copilot: In VSCode, go to Extensions, search for "GitHub Copilot", and install it.
  3. Create a New Project: Open a new folder in VSCode and create a file named app.js.

Step 2: Define Your App’s Purpose

Before you start coding, decide what your app will do. For this tutorial, let's build a simple to-do list app. Write a comment in app.js to describe the functionality you want, like this:

// This app will allow users to add, remove, and view to-do items.

Step 3: Start Coding with Copilot

Begin typing your first function. For example, to create a function that adds a to-do item:

function addTodo(item) {
  // Copilot will suggest code here
}

When you start typing, Copilot will automatically suggest code. Accept the suggestions by pressing Tab. Repeat this process for the functions to view and remove items.

Step 4: Test Your App

After coding, run your app. In the terminal, use Node.js to execute your code:

node app.js

Check if the app behaves as expected. If not, Copilot can help debug by suggesting changes based on the errors you encounter.

Step 5: Polish and Document

Once your app is functioning, take a moment to add comments and improve readability. You might write:

// Function to remove a to-do item
function removeTodo(index) {
  // logic here
}

Expected Outputs

By the end of this process, you should see a working to-do list app in your terminal that lets you add and remove tasks.

Troubleshooting: What Could Go Wrong?

  • Copilot Doesn’t Suggest: Ensure you’re connected to the internet and have valid Copilot credentials.
  • Errors in Code: If you encounter syntax errors, double-check your code or ask Copilot for help by typing comments asking for specific fixes.
  • Slow Performance: If VSCode is lagging, restart the application or check your system resources.

What’s Next?

Now that you have a functioning app, consider adding features like saving the to-do list to local storage or implementing user authentication. Explore these options to take your app to the next level.

Conclusion: Start Here

Building a fully functioning app in just 2 hours is possible with GitHub Copilot, as long as you have a clear plan and some coding knowledge. Set up your environment, define your app's purpose, and let Copilot do the heavy lifting.

If you're looking for a practical way to leverage AI in your coding workflow, give GitHub Copilot a shot. It may not be perfect, but it can significantly speed up your development process.

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