Ai Coding Tools

How to Build a Complete Project with GitHub Copilot in Just 2 Hours

By BTW Team3 min read

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

In short

Step-by-step tutorial on utilizing GitHub Copilot to create a fully functional project within a 2-hour timeframe, targeting novice developers aiming to ramp up their skills quickly.

Ever felt overwhelmed by the prospect of building a project from scratch? As indie hackers and solo founders, we often find ourselves juggling multiple tasks, and the thought of coding can be daunting. Enter GitHub Copilot: an AI-powered coding assistant that promises to speed up the development process. The best part? You can build a complete project in just 2 hours. Let's dive into how to leverage this tool effectively.

Prerequisites: What You Need to Get Started

Before we jump into the build, make sure you have these essentials ready:

  • GitHub Account: You need a GitHub account to use Copilot.
  • Code Editor: Install Visual Studio Code (free) or any other editor that supports Copilot.
  • GitHub Copilot Subscription: As of June 2026, the pricing is $10/month or $100/year, with a free trial available.
  • Basic Understanding of JavaScript: This guide will focus on a simple JavaScript project.

Step-by-Step Guide to Building Your Project

Step 1: Set Up Your Environment (15 minutes)

  1. Install Visual Studio Code: Download and install from Visual Studio Code.
  2. Install GitHub Copilot: Open VS Code, go to extensions, and search for "GitHub Copilot". Click install.
  3. Create a New Repository: Go to GitHub, create a new repository, and clone it to your local machine.

Step 2: Initialize Your Project (30 minutes)

  1. Create Project Files: In your cloned repository, create the following files:

    • index.html
    • style.css
    • app.js
  2. Set Up Basic HTML: Open index.html and start coding:

    <!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>My Project</title>
    </head>
    <body>
        <h1>Hello World</h1>
        <script src="app.js"></script>
    </body>
    </html>
    

    Expected Output: A simple webpage with "Hello World".

Step 3: Use GitHub Copilot to Enhance Your Code (30 minutes)

  1. Start Coding in app.js: Begin typing a function, like a simple greeting:

    function greet(name) {
        return `Hello, ${name}!`;
    }
    

    GitHub Copilot will suggest completions. Accept the suggestions that fit your needs.

  2. Implement Event Listeners: For example, add a button to trigger the greeting:

    document.getElementById('greetButton').addEventListener('click', () => {
        const name = document.getElementById('nameInput').value;
        alert(greet(name));
    });
    

Step 4: Style Your Project (20 minutes)

  1. Edit style.css: Add some basic styles:

    body {
        font-family: Arial, sans-serif;
        text-align: center;
    }
    
  2. Test Your Styles: Refresh your browser to see the changes.

Step 5: Finalize and Deploy (25 minutes)

  1. Commit Your Changes: Use Git to commit your work:

    git add .
    git commit -m "Initial project setup"
    
  2. Deploy Your Project: Use GitHub Pages for free hosting:

    • Go to your repository settings on GitHub.
    • Scroll down to the GitHub Pages section and select the main branch as the source.

Troubleshooting: Common Issues and Solutions

  • Copilot Not Suggesting Code: Make sure you're signed in and have a valid subscription.
  • Deployment Issues: Ensure your repository is public for GitHub Pages to work.

What’s Next: Expanding Your Project

Now that you have a basic project up and running, consider adding features like:

  • User authentication
  • API integration for dynamic data
  • Responsive design for better user experience

Conclusion: Start Here

Building a project with GitHub Copilot can be a game-changer, especially for those of us who are short on time. The key takeaway? Don't hesitate to lean on AI tools to streamline your workflow. Set aside about 2 hours, follow the steps above, and you’ll have a functional project ready to showcase.

What We Actually Use

In our experience, we rely on GitHub Copilot for rapid prototyping and coding assistance. It saves us time and helps overcome the initial coding barriers, especially when we're working on side projects.

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