Ai Coding Tools

How to Build Your First App Using GitHub Copilot in 3 Hours

By BTW Team3 min read

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

In short

A step-by-step guide for beginners on how to leverage GitHub Copilot to build your first functional app within just 3 hours. Learn the essentials of integrating AI coding assistance.

Building your first app can feel overwhelming, especially if you’re just starting out. But what if I told you that you could leverage AI to help you code it in just three hours? GitHub Copilot is a powerful tool that can assist you in writing code more efficiently. In this guide, I’ll walk you through the process of building a simple app using GitHub Copilot, along with some practical tips and honest insights from our experience.

Prerequisites: What You’ll Need

Before diving in, make sure you have the following:

  1. A GitHub Account: Sign up at GitHub if you don’t have one.
  2. Visual Studio Code (VS Code): Download and install it from Visual Studio Code.
  3. GitHub Copilot Subscription: This currently costs $10/month for individuals, but you can start with a 30-day free trial.
  4. Basic Understanding of JavaScript: Familiarity with JavaScript is helpful, but Copilot can guide you through most of it.

Step 1: Setting Up Your Environment (15 minutes)

  1. Install VS Code: Open it up and install the GitHub Copilot extension from the Extensions Marketplace.
  2. Create a New Project: Start a new folder for your app and create an index.js file where you'll write your code.
  3. Initialize Git: Run git init in your project folder to keep track of changes.

Step 2: Use GitHub Copilot to Generate Code (2 hours)

Start Coding

  1. Define Your App: Let's say we’re building a simple to-do list app. Begin by typing a comment in your index.js file, like // Create a function to add a task.
  2. Let Copilot Assist: As you type, GitHub Copilot will suggest code snippets. Press Tab to accept suggestions or Esc to ignore them.
  3. Iterate on Features: Keep defining functions for features like removing tasks, marking tasks as complete, and displaying the task list. For example:
    • // Create a function to remove a task
    • // Create a function to display tasks

Expected Outputs

By the end of this step, you should have a basic implementation of your to-do list app, including functions for adding, removing, and displaying tasks.

Step 3: Testing Your App (30 minutes)

  1. Run Your Code: Use the terminal in VS Code to run your index.js file with node index.js.
  2. Debugging with Copilot: If you encounter errors, Copilot can help suggest fixes. Simply ask by typing comments like // Fix the error in the add task function.
  3. Iterate: Make changes based on your testing and continue using Copilot to refine your app.

Troubleshooting: What Could Go Wrong

  • Unintended Code Suggestions: Sometimes, Copilot may suggest code that doesn’t fit your needs. Always review suggested code carefully.
  • Dependencies: If you need to use libraries (like Express for a web app), you’ll have to install them separately using npm. Copilot can help with installation commands (e.g., npm install express).

What’s Next: Progression After Your First App

Once you’ve built your first app, consider these next steps:

  1. Deploy Your App: Use platforms like Vercel or Heroku for deployment.
  2. Enhance Features: Add user authentication or a database to store tasks.
  3. Explore More Tools: Look into other AI coding assistants like Tabnine or Replit's Ghostwriter for different perspectives.

Conclusion: Start Here

Building your first app using GitHub Copilot is an attainable goal, especially with the right tools and mindset. Start with a simple project like a to-do list, and leverage Copilot's capabilities to enhance your coding experience. Don’t be afraid to iterate and experiment; that’s part of the learning process.

Remember: GitHub Copilot can help you code faster, but it’s still crucial to understand what the code is doing.

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