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 Optimize Your Coding Speed with AI Tools in 2 Hours

How to Optimize Your Coding Speed with AI Tools in 2026 As indie hackers and solo founders, we’re always on the lookout for ways to streamline our workflow. In 2026, AI coding tool

Aug 25, 20264 min read
Ai Coding Tools

Cursor vs. Codeium: Which AI Tool Makes You a Better Coder in 2026?

Cursor vs. Codeium: Which AI Tool Makes You a Better Coder in 2026? As someone who has spent countless hours coding and debugging, the arrival of AI coding tools like Cursor and Co

Aug 25, 20263 min read
Ai Coding Tools

How to Create Your First Project with GitHub Copilot in Just 90 Minutes

How to Create Your First Project with GitHub Copilot in Just 90 Minutes If you're a solo founder or indie hacker, you know that getting started with coding can feel daunting. You m

Aug 25, 20263 min read
Ai Coding Tools

Love or Hate: Why GitHub Copilot is Overrated for New Developers

Love or Hate: Why GitHub Copilot is Overrated for New Developers As a new developer, diving into the world of coding can feel overwhelming. You’re bombarded with tools and technolo

Aug 25, 20264 min read
Ai Coding Tools

How to Optimize Your Coding Workflow with AI Tools in Just 60 Minutes

How to Optimize Your Coding Workflow with AI Tools in Just 60 Minutes As a solo founder or indie hacker, time is your most precious resource. You can spend hours debugging code or

Aug 25, 20265 min read
Ai Coding Tools

How to Build Your First App in 72 Hours Using AI Coding Tools

How to Build Your First App in 72 Hours Using AI Coding Tools If you're a beginner looking to build your first app, the idea of doing it in just 72 hours might sound crazy. But wit

Aug 25, 20264 min read