Ai Coding Tools

How to Build a Simple Web App Using GitHub Copilot in 30 Minutes

By BTW Team3 min read

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

In short

Step-by-step tutorial on leveraging GitHub Copilot to create a functional web app in just half an hour.

If you're like me, you often find yourself with a great idea for a web app but struggle to translate that idea into code. Enter GitHub Copilot. This AI-powered coding assistant can help you write code faster and more efficiently. In this guide, I'll walk you through the process of building a simple web app in just 30 minutes using GitHub Copilot.

Prerequisites

Before we dive in, here’s what you need:

  • GitHub account: Sign up for a free account if you don’t have one.
  • Visual Studio Code (VS Code): Download and install it here.
  • GitHub Copilot subscription: GitHub Copilot costs $10/month or $100/year. You can start with a 60-day free trial to test it out.

Step 1: Set Up Your Development Environment

  1. Install VS Code: If you haven't done so, grab the latest version of VS Code.
  2. Install GitHub Copilot: Open VS Code and install the GitHub Copilot extension from the marketplace.
  3. Create a new project folder: In your terminal, navigate to where you want to create your project and run:
    mkdir my-web-app
    cd my-web-app
    

Step 2: Initialize Your Web App

  1. Create an index.html file: Inside your project folder, create a file named index.html.
  2. Write the basic HTML structure: Start typing the following in the index.html file:
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>My Web App</title>
    </head>
    <body>
        <h1>Hello, World!</h1>
    </body>
    </html>
    
    GitHub Copilot will suggest completions as you type, making it easy to fill in the gaps.

Step 3: Add Some Style

  1. Create a style.css file: In the same folder, create a style.css file.
  2. Add some basic styles: Start typing the following in the style.css file:
    body {
        font-family: Arial, sans-serif;
        background-color: #f0f0f0;
        text-align: center;
    }
    
    Again, Copilot will help you by suggesting styles as you type.
  1. Link the CSS file in your HTML: Go back to index.html and add the following line inside the <head> section:
    <link rel="stylesheet" href="style.css">
    

Step 5: Run Your Web App

  1. Open the HTML file in a browser: You can either drag and drop the index.html file into your browser or use the Live Server extension in VS Code to see your app live.
  2. Verify the output: You should see a simple web page with "Hello, World!" styled as you defined.

Troubleshooting

  • Copilot not suggesting completions?: Ensure that you're logged into GitHub in VS Code and that GitHub Copilot is enabled in your settings.
  • Styling issues?: Double-check your CSS file for any typos or missing links in the HTML.

What's Next?

Once your simple web app is up and running, consider expanding its functionality. You can add JavaScript for interactivity or connect it to a backend service. For example, using Node.js or Firebase can help you take your app to the next level.

Conclusion: Start Here

Building a web app using GitHub Copilot is not only possible but can also be done in a short amount of time. Start by following this guide, and you’ll have a functioning web app in just 30 minutes. Remember, Copilot is a tool to assist you, so take advantage of its suggestions but also learn from the code it generates.

Ready to build your first app? Go ahead and dive in!

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