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

Why GitHub Copilot is Overrated: 5 Critical Perspectives

Why GitHub Copilot is Overrated: 5 Critical Perspectives As a solo founder or indie hacker, you’re always looking for tools that genuinely enhance your productivity, especially whe

May 6, 20264 min read
Ai Coding Tools

How to Use AI Coding Tools to Reduce Your Coding Time by 50% in 2026

How to Use AI Coding Tools to Reduce Your Coding Time by 50% in 2026 As a solo founder or indie hacker, you know that time is your most valuable asset. If you’re spending hours on

May 6, 20264 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which AI Tool Is Better for Solo Developers? 2026 Edition

Cursor vs GitHub Copilot: Which AI Tool Is Better for Solo Developers? 2026 Edition As a solo developer, you're often juggling multiple roles and responsibilities, which means ever

May 6, 20263 min read
Ai Coding Tools

Bolt.new vs Cursor: Which AI Tool is Best for Solo Developers?

Bolt.new vs Cursor: Which AI Tool is Best for Solo Developers? As a solo developer, finding the right tools to streamline your coding workflow can feel overwhelming. With numerous

May 5, 20263 min read
Ai Coding Tools

Bolt.new vs Codeium: Which AI Tool Is Best for Rapid Prototyping?

Bolt.new vs Codeium: Which AI Tool Is Best for Rapid Prototyping? (2026) In the fastpaced world of indie hacking and side projects, rapid prototyping is often the key to success. A

May 5, 20263 min read
Ai Coding Tools

5 Time-Saving AI Tools for Advanced Developers to Code Faster

5 TimeSaving AI Tools for Advanced Developers to Code Faster (2026) As advanced developers, we often find ourselves neckdeep in complex codebases, wrestling with intricate algorith

May 5, 20264 min read