Ai Coding Tools

How to Use GitHub Copilot to Build Your First App in Under 3 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Build Your First App in Under 3 Hours

Building your first app can feel overwhelming, especially if you’re new to coding. The good news? With tools like GitHub Copilot, you can get up and running with a functioning app in under three hours—even if you’re a total beginner. In 2026, AI coding assistants are more capable than ever, and GitHub Copilot is at the forefront of this movement.

Prerequisites: What You Need Before You Start

Before diving into the coding, you'll need a few things set up:

  1. GitHub Account: Sign up for a free account if you don’t have one already.
  2. Visual Studio Code: Download and install this code editor.
  3. GitHub Copilot Extension: Subscribe to GitHub Copilot, which costs $10/month after a 60-day free trial.
  4. Basic Understanding of JavaScript: While Copilot helps a lot, knowing some basics will be beneficial.

Step 1: Setting Up Your Environment (30 Minutes)

  1. Install Visual Studio Code: If you haven't already, download and install it from here.
  2. Add GitHub Copilot: Go to Extensions in VS Code, search for "GitHub Copilot", and install it.
  3. Authenticate GitHub Copilot: Follow the prompts to log in to your GitHub account and authorize Copilot.

Expected Output: After installation, you should see a Copilot icon in your editor.

Step 2: Define Your App Idea (15 Minutes)

Take a moment to think about what kind of app you want to build. For this tutorial, let’s say we’re creating a simple “To-Do List” app. This will involve basic CRUD (Create, Read, Update, Delete) operations.

Tip: Keep it simple! Your first app doesn’t need to be complex.

Step 3: Start Coding with Copilot (1 Hour)

3.1 Create Your Project Structure

  1. Open VS Code.
  2. Create a new folder for your project called TodoApp.
  3. Inside this folder, create three files: index.html, style.css, and app.js.

3.2 Use GitHub Copilot to Generate Code

In index.html, start typing:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Todo App</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>My To-Do List</h1>
    <input type="text" id="taskInput" placeholder="Add a new task">
    <button id="addTaskBtn">Add Task</button>
    <ul id="taskList"></ul>
    <script src="app.js"></script>
</body>
</html>

As you type, Copilot will suggest completions. Accept the suggestions that fit your needs.

3.3 Style Your App

In style.css, you can add basic styles. Start typing to get Copilot’s suggestions:

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

3.4 Implement Functionality in app.js

In app.js, start coding the app’s logic. For example:

const addTaskBtn = document.getElementById('addTaskBtn');
const taskInput = document.getElementById('taskInput');
const taskList = document.getElementById('taskList');

addTaskBtn.onclick = function() {
    const taskText = taskInput.value;
    const li = document.createElement('li');
    li.textContent = taskText;
    taskList.appendChild(li);
    taskInput.value = '';
};

Expected Output: You should now have a basic to-do app that lets you add tasks.

Step 4: Testing Your App (30 Minutes)

  1. Open index.html in your browser.
  2. Test adding tasks to see if everything works as expected.

Troubleshooting Common Issues

  • Copilot doesn’t suggest anything: Make sure you’re logged in and that the extension is enabled.
  • Code doesn’t work: Double-check for typos or syntax errors.

Step 5: Deploy Your App (30 Minutes)

You can deploy your app using GitHub Pages:

  1. Push your project to a new GitHub repository.
  2. Go to the repository settings and enable GitHub Pages under the "Pages" section.
  3. Choose the main branch and save.

Expected Output: Your app is now live at https://<your-username>.github.io/<your-repo-name>.

What's Next?

Now that you’ve built and deployed your first app, consider adding more features, such as editing and deleting tasks. Explore other tools that can enhance your app, like Firebase for data storage.

Conclusion: Start Here

To make the most of GitHub Copilot, keep building simple projects and iterating on them. This tool can significantly speed up your coding process, but it’s essential to understand the code it generates.

In our experience, GitHub Copilot is a solid choice for beginners looking to learn by doing. It’s not perfect, but it’s a great starting point that can boost your confidence as you dive into coding.

What We Actually Use

We use GitHub Copilot for quick prototyping and getting unstuck on tricky code. However, we still rely on foundational knowledge to ensure we’re building robust applications.

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: Contrarian Perspectives on AI Coding Assistants

Why GitHub Copilot is Overrated: Contrarian Perspectives on AI Coding Assistants As a solo founder or indie hacker, you’re always on the lookout for tools that genuinely boost your

Mar 16, 20264 min read
Ai Coding Tools

How to Build Your First App Using AI Tools in Under 3 Hours

How to Build Your First App Using AI Tools in Under 3 Hours If you're a solo founder or an indie hacker, the thought of building an app might seem daunting. But what if I told you

Mar 16, 20265 min read
Ai Coding Tools

Top 5 AI Tools for Beginners in 2026: Your Launchpad

Top 5 AI Tools for Beginners in 2026: Your Launchpad As a beginner diving into the world of coding in 2026, the landscape is flooded with AI tools promising to make your journey sm

Mar 16, 20264 min read
Ai Coding Tools

Supabase vs Firebase for AI-Driven Projects: A 2026 Comparison

Supabase vs Firebase for AIDriven Projects: A 2026 Comparison As we dive into 2026, the landscape for building AIdriven applications has evolved significantly. If you're an indie h

Mar 16, 20264 min read
Ai Coding Tools

How to Build a Simple App with GitHub Copilot in 2 Hours

How to Build a Simple App with GitHub Copilot in 2026 Building an app can feel like a daunting task, especially if you’re a beginner. You might be asking yourself if you have the r

Mar 16, 20264 min read
Ai Coding Tools

How to Write Code 3x Faster Using AI in Just 30 Minutes

How to Write Code 3x Faster Using AI in Just 30 Minutes As a solo founder or indie hacker, you're probably familiar with the struggle of balancing coding with everything else on yo

Mar 16, 20265 min read