Ai Coding Tools

How to Create a Simple Application Using GitHub Copilot in 2 Hours

By BTW Team3 min read

How to Create a Simple Application Using GitHub Copilot in 2 Hours

In 2026, the landscape of coding has changed dramatically with the advent of AI tools like GitHub Copilot. If you've ever felt overwhelmed by the thought of building an application from scratch, you're not alone. Many indie hackers and solo founders struggle with the coding aspect of their projects. The good news? With GitHub Copilot, you can create a simple application in just two hours. Yes, you read that right! Let’s dive into how you can leverage this tool effectively.

Prerequisites: What You Need Before You Start

Before we jump into the actual coding, make sure you have the following:

  • GitHub Account: Free account is sufficient.
  • Visual Studio Code (VS Code): Download and install it from the official site. It’s free and works great with Copilot.
  • GitHub Copilot Subscription: Costs $10/month or $100/year after a free trial. It’s essential for accessing the AI features.
  • Basic Knowledge of JavaScript: Familiarity with JavaScript will help you understand the code that Copilot suggests.

Step 1: Setting Up Your Environment

  1. Install VS Code: Once installed, open the editor.
  2. Install GitHub Copilot: Go to the Extensions marketplace in VS Code and search for GitHub Copilot. Click on "Install" and log in with your GitHub account.
  3. Create a New Project Folder: Name it something like "MyFirstApp".

Expected Output:

You should see a clean workspace in VS Code ready for coding.

Step 2: Start Coding with Copilot

Now, let’s create a simple to-do list application. Follow these steps:

  1. Create an index.html File: This will be your main HTML file.
    • Type <!DOCTYPE html> and hit enter. Copilot will suggest the rest of the HTML structure.
  2. Add Basic Structure: Start writing the <head> section. Copilot will assist you in filling in the title and linking stylesheets.
  3. Create a script.js File: This file will handle the logic of your application.
    • Start by typing function addTask() and let Copilot fill in the function body.

Expected Output:

You should have a basic HTML structure and a JavaScript function ready to go.

Step 3: Building Features

  1. Adding Tasks: Type out the functionality for adding a task. For example:

    function addTask(task) {
        // Code to add task
    }
    

    Let Copilot suggest the implementation.

  2. Displaying Tasks: Type function displayTasks() and see what Copilot generates.

  3. Styling with CSS: Create a styles.css file and start typing some styles. Copilot can suggest common styles based on class names.

Expected Output:

You should have a functional to-do list where you can add and display tasks.

Troubleshooting: What Could Go Wrong

  • Copilot Doesn't Suggest What You Expect: If Copilot seems off, try rephrasing your function names or comments. It learns from context.
  • Errors in Code: Always run your code in the browser to catch any errors. Debugging is part of the process!

What's Next: Expanding Your Application

Once you’ve got the basic app running, consider these enhancements:

  • Add Local Storage: Save tasks even after refreshing the page.
  • Implement Task Deletion: Allow users to remove tasks.
  • Style It Up: Use a CSS framework like Bootstrap for better aesthetics.

Conclusion: Start Here

Creating an application with GitHub Copilot can be an efficient way to bring your ideas to life. With just two hours and some basic coding knowledge, you can have a simple yet functional app. Remember, the key is to dive in and let Copilot assist you along the way. If you get stuck, don’t hesitate to refer back to the documentation or seek help from the community.

What We Actually Use: We currently rely on GitHub Copilot for rapid prototyping and development. It saves us time and helps us focus on higher-level design decisions rather than getting bogged down by syntax errors.

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

How to Automate Your Development Workflow with AI in 3 Easy Steps

How to Automate Your Development Workflow with AI in 3 Easy Steps (2026) As indie hackers and solo founders, we often find ourselves buried under a mountain of repetitive tasks tha

Sep 3, 20264 min read
Ai Coding Tools

How to Boost Your Coding Velocity with AI in 30 Minutes

How to Boost Your Coding Velocity with AI in 30 Minutes As a solo founder or indie hacker, you know that time is your most precious resource. The idea of boosting your coding veloc

Sep 3, 20264 min read
Ai Coding Tools

Why Most Developers Get GitHub Copilot Wrong: 5 Myths Busted

Why Most Developers Get GitHub Copilot Wrong: 5 Myths Busted As we dive into 2026, GitHub Copilot has become a staple in many developers' toolkits. However, despite its popularity,

Sep 3, 20263 min read
Ai Coding Tools

How to Use AI Coding Tools to Boost Productivity in Under 2 Hours

How to Use AI Coding Tools to Boost Productivity in Under 2 Hours As indie hackers, we all know the struggle of trying to stay productive while juggling multiple projects. The prom

Sep 3, 20265 min read
Ai Coding Tools

Vercel vs GitHub Copilot: Which AI Tool is Right for Your Project?

Vercel vs GitHub Copilot: Which AI Tool is Right for Your Project? As a solo founder or indie hacker, choosing the right tools can be a makeorbreak decision for your project. With

Sep 3, 20263 min read
Ai Coding Tools

Why GitHub Copilot is Not the Magic Bullet for Every Programmer: Debunking the Myths

Why GitHub Copilot is Not the Magic Bullet for Every Programmer: Debunking the Myths As a programmer, I’ve been there: staring at a blank screen, hoping for a burst of inspiration

Sep 3, 20264 min read