Ai Coding Tools

How to Code Your First App with GitHub Copilot in Just 2 Hours

By BTW Team4 min read

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

In short

Step-by-step tutorial on using GitHub Copilot to build and code your first application quickly and efficiently.

So, you want to build your first app but feel overwhelmed by the coding process? You're not alone. Many indie hackers and side project builders face this dilemma. The good news is that with tools like GitHub Copilot, you can streamline your coding experience and get something functional up and running in just 2 hours. In this guide, I’ll walk you through how to leverage GitHub Copilot effectively, what you need to get started, and the pitfalls to avoid.

Prerequisites: What You Need to Start

Before diving into coding, make sure you have the following:

  1. GitHub Account: Create a free account at GitHub.
  2. Visual Studio Code (VS Code): Download and install VS Code. This is where you’ll write your code.
  3. GitHub Copilot Subscription: You’ll need a subscription for Copilot, which costs $10/month as of July 2026. There’s a free trial available for 30 days.
  4. Basic Understanding of JavaScript: Familiarity with JavaScript will help you understand the suggestions Copilot provides.

Step-by-Step Guide to Coding Your First App

Step 1: Set Up Your Environment (15 minutes)

  1. Install VS Code: Open the installer and follow the prompts.
  2. Install GitHub Copilot: In VS Code, go to Extensions (Ctrl+Shift+X), search for "GitHub Copilot," and click Install.
  3. Create a New Project Folder: Open a terminal and create a folder for your project, then navigate into it.

Step 2: Initialize Your App (15 minutes)

  1. Create an index.html file: This will be your app's main file.
  2. Add Basic HTML Structure: Type ! and hit Tab in VS Code to generate a basic HTML template.

Step 3: Use GitHub Copilot to Write Code (1 hour)

  1. Start Coding: Begin by typing comments about what you want to code. For example, type // Create a button and hit enter. Copilot will suggest code for you.
  2. Iterate and Refine: If the suggestion isn’t quite right, you can cycle through other suggestions by hitting Ctrl + ] or Ctrl + [.

Step 4: Test Your App (15 minutes)

  1. Open Your HTML File in a Browser: Right-click the index.html file in VS Code and select "Open with Live Server" (you may need to install this extension).
  2. Check for Errors: Ensure everything works as expected. If there are issues, Copilot can help you debug by suggesting fixes.

Step 5: Deploy Your App (15 minutes)

  1. Use GitHub Pages: Push your project to GitHub, and go to the repository settings to enable GitHub Pages.
  2. Share Your App: Once deployed, share the link with friends or on social media.

Troubleshooting: What Could Go Wrong

  • Copilot Doesn’t Suggest What I Want: Try being more specific with your comments. The clearer your intent, the better the suggestions.
  • Errors in the Browser: Check the console (F12 in most browsers) for error messages. Use Copilot to help troubleshoot by typing comments about the errors.

What's Next: Building on Your First App

Once your first app is live, consider the following steps:

  • Add More Features: Use Copilot to help you brainstorm and code new functionalities.
  • Explore Other Frameworks: Consider trying React or Vue.js for more complex applications.
  • Join Developer Communities: Engage with others on platforms like Discord or Reddit to share your app and get feedback.

Conclusion: Start Here

If you're ready to dive into coding your first app, GitHub Copilot can make the process smoother and faster. With just a couple of hours, you can have a functional app that you can build upon. Just remember to keep iterating and learning as you go.

What We Actually Use

In our experience, we primarily use GitHub Copilot for rapid prototyping and simple apps. For more complex projects, we switch to frameworks that require deeper coding knowledge, but Copilot remains a staple for quick suggestions and debugging.

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