Ai Coding Tools

How to Create a Simple Web App Using GitHub Copilot in Just 2 Hours

By BTW Team3 min read

How to Create a Simple Web App Using GitHub Copilot in Just 2 Hours

If you’ve ever wanted to build a web app but felt overwhelmed by the coding, you’re not alone. Many indie hackers and solo founders hit a wall when it comes to programming. But what if I told you that you could create a simple web app in just 2 hours using GitHub Copilot? In 2026, AI tools like Copilot have matured, making it much easier to get started without needing a computer science degree.

Prerequisites: What You Need Before You Start

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

  1. GitHub Account: Free to sign up.
  2. Visual Studio Code: Download and install the free code editor.
  3. GitHub Copilot Subscription: $10/month after a 30-day free trial.
  4. Node.js: Install the latest version for running JavaScript applications.
  5. Basic HTML/CSS/JavaScript Knowledge: Familiarity will help, but Copilot can guide you through the process.

Step 1: Setting Up Your Development Environment

  1. Install Visual Studio Code: Go to the official site and download the latest version.
  2. Add GitHub Copilot: Go to Extensions in VS Code and search for "GitHub Copilot". Install and authenticate using your GitHub account.
  3. Create a New Project: Open a terminal in VS Code and create a new folder for your web app. Run:
    mkdir my-simple-web-app
    cd my-simple-web-app
    npm init -y
    

Step 2: Building Your Web App Structure

  1. Create the HTML File: In your project folder, create an index.html file.
  2. Use Copilot for Boilerplate: Start typing <!DOCTYPE html> in the index.html file and let Copilot suggest the HTML boilerplate. Accept the suggestion.
  3. Add Basic CSS: Create a styles.css file and start typing body { to get styling suggestions from Copilot.

Expected Output at This Stage:

You should have a basic HTML page with linked CSS for styling.

Step 3: Adding Functionality with JavaScript

  1. Create a JavaScript File: Create a script.js file.
  2. Implement Features Using Copilot:
    • Start with basic functions. For example, type function greet() and let Copilot suggest the function body.
    • Use prompts to ask Copilot for specific functionalities, like “add a button that changes text on click.”

Example Code Snippet:

document.getElementById("myButton").onclick = function() {
    document.getElementById("myText").innerHTML = "Hello, World!";
}

Troubleshooting: What Could Go Wrong

  1. Copilot Doesn’t Suggest: If nothing shows up, check if your Copilot subscription is active. Also, ensure you’re connected to the internet.
  2. Errors in Code: If your app doesn’t run, use the built-in terminal in VS Code to debug. Look for error messages and adjust your code accordingly.

What's Next: Deployment

Once your app is working locally, consider deploying it. You can use platforms like:

  • Netlify: Free tier available, great for static sites.
  • Vercel: Also free for basic usage, ideal for front-end frameworks.

Deployment Steps:

  1. Create an account on either platform.
  2. Link your GitHub repository.
  3. Follow prompts to deploy your app.

Conclusion: Start Here

If you’re looking to build a simple web app quickly, GitHub Copilot is an excellent tool to get you started in just 2 hours. While it won’t replace deep coding knowledge, it significantly lowers the barrier for entry.

For your first project, I recommend creating a simple interactive webpage. Focus on features that are easy to implement and gradually build your skills.

What We Actually Use

In our experience, GitHub Copilot is invaluable for quick prototypes and simple applications. However, for complex projects, we still rely on traditional coding practices.

Follow Our Building Journey

Weekly podcast episodes on tools we're testing, products we're shipping, and lessons from building in public.

Subscribe

Never miss an episode

Subscribe to Built This Week for weekly insights on AI tools, product building, and startup lessons from Ryz Labs.

Subscribe
Ai Coding Tools

Bolt.new vs GitHub Copilot: Which AI Tool is Better for Serious Programmers?

Bolt.new vs GitHub Copilot: Which AI Tool is Better for Serious Programmers? As a serious programmer, you’re probably always on the lookout for tools that can enhance your efficien

Aug 16, 20264 min read
Ai Coding Tools

How to Use Cursor AI to Build Your First App in Under 2 Hours

How to Use Cursor AI to Build Your First App in Under 2 Hours Building your first app can feel like a monumental task, especially if you’re not a seasoned developer. The idea of wr

Aug 16, 20264 min read
Ai Coding Tools

How to Build Your First App Using AI Tools in Just 1 Hour

How to Build Your First App Using AI Tools in Just 1 Hour Building your first app can feel like a daunting task, especially if you're new to coding. But what if I told you that wit

Aug 16, 20264 min read
Ai Coding Tools

Supabase vs Firebase for AI-Powered Apps: Which One Should You Choose?

Supabase vs Firebase for AIPowered Apps: Which One Should You Choose? As indie hackers and side project builders, we often face the dilemma of choosing the right backend for our AI

Aug 16, 20264 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which AI Tool is Better for Expert Developers in 2026?

Cursor vs GitHub Copilot: Which AI Tool is Better for Expert Developers in 2026? As an expert developer, you're probably familiar with the constant push for efficiency and the tool

Aug 16, 20263 min read
Ai Coding Tools

Best 5 AI Coding Tools for Advanced Developers in 2026

Best 5 AI Coding Tools for Advanced Developers in 2026 As an advanced developer, you know that the right tools can significantly enhance your productivity and streamline your workf

Aug 16, 20264 min read