Ai Coding Tools

How to Use GitHub Copilot to Build Your First App in 3 Days

By BTW Team3 min read

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

In short

Step-by-step guide on leveraging GitHub Copilot to create a simple application within just three days.

Building your first app can feel like climbing a mountain. You might be excited but also overwhelmed by the sheer amount of coding and decision-making involved. What if I told you that a tool like GitHub Copilot could help you cut that time down significantly? In this guide, I'll walk you through how to leverage GitHub Copilot to build an app in just three days, sharing our experiences and the potential pitfalls along the way.

Prerequisites: Get Ready to Code

Before diving in, you’ll need a few things set up:

  1. GitHub Account: Sign up for a free account at GitHub.
  2. Code Editor: Install Visual Studio Code (VSCode) - it’s free and works seamlessly with GitHub Copilot.
  3. GitHub Copilot: Subscribe to GitHub Copilot for $10/mo or $100/yr. They offer a free trial, so you can check it out first.
  4. Basic Programming Knowledge: Familiarity with JavaScript or Python will help, but Copilot can assist even if you're a beginner.

Day 1: Setting Up Your Environment

Step 1: Install GitHub Copilot

  1. Open VSCode and go to Extensions (Ctrl+Shift+X).
  2. Search for “GitHub Copilot” and install it.
  3. Sign in with your GitHub account to activate it.

Step 2: Create Your Project

  1. Open a new terminal in VSCode.
  2. Create a new directory for your app:
    mkdir my-first-app
    cd my-first-app
    
  3. Initialize a Git repository:
    git init
    

Step 3: Start Coding Your App

Begin with a simple project. Let’s say you want to build a to-do list app. Create a new file named app.js and start typing a comment like // Create a simple to-do list app. Copilot will suggest code snippets. Accept its suggestions to build the app's structure.

Expected Outputs:

  • A basic structure of your app in app.js with functions for adding and removing tasks.

Day 2: Building Features with Copilot

Step 4: Implement Core Features

  1. Adding Tasks: Type // function to add tasks and let Copilot suggest the code.
  2. Removing Tasks: Repeat the same process for a function to remove tasks.
  3. Display Tasks: Create a display function by typing // function to display tasks.

Step 5: Style Your App

  1. Create a new file named style.css.
  2. Use comments to guide Copilot, e.g., /* style the to-do list */.

Troubleshooting:

  • If Copilot’s suggestions aren’t fitting, refine your comments for better context.
  • Remember, it doesn’t always get it right. Double-check the logic and syntax.

Day 3: Final Touches and Deployment

Step 6: Testing Your App

  1. Test your app locally by running:
    node app.js
    
  2. Fix any errors that pop up, using Copilot to help debug by typing comments like // fix errors in adding tasks.

Step 7: Deployment

  1. Choose a platform like Vercel (free for personal projects) or Heroku (free tier available).
  2. Follow their deployment guides, and Copilot can assist with setting up necessary files like Procfile for Heroku.

What Could Go Wrong:

  • Deployment issues can arise if you miss configuration steps. Always read the platform's documentation.

Conclusion: Start Building Today

By following this guide, you can build your first app in just three days using GitHub Copilot. It’s an incredibly powerful tool that can speed up your development process, but it’s not perfect. Expect to spend time refining the code and learning as you go.

What We Actually Use

We rely heavily on GitHub Copilot for rapid prototyping and coding assistance, especially when trying to get through initial development phases quickly. However, we still check the output manually to ensure quality and correctness.

If you’re ready to start building, dive into GitHub Copilot, and let it guide you through your first app.

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