Ai Coding Tools

How to Build Your First Simple App with GitHub Copilot in 2 Hours

By BTW Team3 min read

How to Build Your First Simple App with GitHub Copilot in 2026

Building your first app can feel overwhelming, especially if you're new to coding. You might be thinking, "I don't have the time or expertise to make this happen." But what if I told you that with the right tools, you could build a simple app in just two hours? Enter GitHub Copilot, an AI-powered coding assistant that can significantly speed up your development process. In this guide, I’ll walk you through how to leverage GitHub Copilot to create a basic app quickly and efficiently.

Prerequisites

Before you dive in, make sure you have the following:

  • A GitHub account: Free tier is sufficient.
  • Visual Studio Code (VS Code): Download and install it from Visual Studio's website.
  • GitHub Copilot subscription: $10/month after a 60-day free trial.
  • Basic understanding of JavaScript: This guide assumes you have some familiarity with coding.

Time Estimate: 2 Hours

You can finish this project in about two hours if you follow the steps closely. Let's get started!

Step 1: Set Up Your Environment

  1. Install GitHub Copilot:

    • Open VS Code and go to the Extensions view.
    • Search for "GitHub Copilot" and click "Install".
    • Sign in with your GitHub account and enable Copilot.
  2. Create a New Project:

    • Open your terminal in VS Code.
    • Run mkdir my-first-app && cd my-first-app to create a new directory.
    • Initialize a new Node.js project by running npm init -y.

Step 2: Write Your Code

Building a Simple To-Do List App

  1. Create the Main File:

    • Create a new file called app.js.
    • Start writing a simple function to display a welcome message using Copilot:
      // Start typing: "function welcomeMessage() {"
      
  2. Use GitHub Copilot to Generate Code:

    • As you type, GitHub Copilot will suggest code. Accept the suggestions by pressing Tab.
    • Implement a basic to-do list functionality. For example:
      const tasks = [];
      
      function addTask(task) {
        tasks.push(task);
        console.log(`Added: ${task}`);
      }
      
      function showTasks() {
        console.log('Current Tasks:', tasks);
      }
      

Expected Output

When you run node app.js, you should see the welcome message and any tasks you add to the list in the console.

Step 3: Run Your App

  1. Run the Application:
    • In the terminal, type node app.js to execute your script.
    • You should see your welcome message and any tasks you added printed out.

Troubleshooting

  • Error: "Cannot find module": Ensure you are in the correct directory and that your file is named correctly.
  • Copilot not suggesting code: Make sure you are connected to the internet and that the GitHub Copilot extension is enabled.

What's Next?

Now that you have a basic app up and running, consider expanding its functionality. You could add features like:

  • Task completion: Mark tasks as done.
  • Persistent storage: Use local storage or a database to save tasks.
  • User interface: Implement a simple front-end using HTML/CSS.

Conclusion: Start Here

If you're looking to build your first app quickly and efficiently, GitHub Copilot is a powerful ally. It can help you overcome blocks and generate code faster than you might do on your own. To get started, follow the steps outlined above, and don't hesitate to experiment with new features.

What We Actually Use

In our experience, we primarily use GitHub Copilot for rapid prototyping and tackling repetitive coding tasks. It's especially useful when we're trying to implement common functions quickly.

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

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time As a developer, whether you're just starting out or have years of experience, debugging can feel like a neverend

Oct 16, 20265 min read
Ai Coding Tools

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow As developers, we’re always on the lookout for ways to streamline our workflow and boost productivity. Enter

Oct 14, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read