Ai Coding Tools

How to Build Your First Project with GitHub Copilot in Just 2 Hours

By BTW Team4 min read

How to Build Your First Project with GitHub Copilot in Just 2 Hours

Have you ever found yourself staring at a blank code editor, unsure of where to start? You’re not alone. Many indie hackers and solo founders experience this paralysis when diving into a new project. Fortunately, with tools like GitHub Copilot, you can kickstart your coding journey and build something tangible in no time. In this guide, I’ll show you how to leverage GitHub Copilot to create your first project in just 2 hours—yes, you read that right!

Prerequisites: What You Need to Get Started

Before diving in, make sure you have the following set up:

  1. GitHub Account: Sign up for free if you don’t have one already.
  2. Visual Studio Code (VS Code): Download and install this code editor.
  3. GitHub Copilot Extension: Install the GitHub Copilot extension in VS Code.
  4. Basic Understanding of JavaScript: Familiarity with the language will help, but Copilot can assist you even if you’re a beginner.

Step 1: Setting Up Your Environment (15 minutes)

  1. Install Visual Studio Code: Download it from here.
  2. Install GitHub Copilot: Open VS Code, go to Extensions (Ctrl+Shift+X), and search for "GitHub Copilot." Click "Install."
  3. Sign In to GitHub: After installation, sign in to your GitHub account within VS Code to activate Copilot.

Expected Output

You should see a GitHub Copilot icon in the status bar, indicating it's ready to assist you.

Step 2: Choose a Simple Project Idea (15 minutes)

For your first project, simplicity is key. Here are a few ideas:

  • Todo List App: A basic app to manage tasks.
  • Weather App: Fetch weather data from an API.
  • Personal Portfolio: Showcase your projects and skills.

In this guide, we’ll build a simple Todo List App.

Step 3: Start Coding with Copilot (1 hour)

Create Your Project Directory

  1. Open a terminal in VS Code (Ctrl + `).

  2. Create a new directory and navigate into it:

    mkdir todo-app
    cd todo-app
    

Initialize a New Project

  1. Create an index.html file:

    touch index.html
    
  2. Start coding! Begin with a basic HTML structure. Type the following and let Copilot suggest the rest:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Todo List</title>
    </head>
    <body>
        <h1>My Todo List</h1>
        <ul id="todo-list"></ul>
        <input type="text" id="new-task" placeholder="Add a new task">
        <button id="add-task">Add</button>
    </body>
    </html>
    

Use Copilot for JavaScript

  1. Create a script.js file:

    touch script.js
    
  2. Start coding the logic for adding tasks. Type a comment to prompt Copilot:

    // Function to add a new task
    
  3. Let Copilot fill in the code. You might see something like this:

    function addTask() {
        const taskInput = document.getElementById('new-task');
        const taskList = document.getElementById('todo-list');
        const newTask = document.createElement('li');
        newTask.textContent = taskInput.value;
        taskList.appendChild(newTask);
        taskInput.value = '';
    }
    
    document.getElementById('add-task').addEventListener('click', addTask);
    

Final Touches

  1. Link your JavaScript file in index.html:

    <script src="script.js"></script>
    
  2. Open the index.html file in your browser to see your Todo List in action!

Expected Output

You should see a functional Todo List where you can add tasks.

Troubleshooting: What Could Go Wrong

  • Copilot Doesn’t Suggest Code: Make sure you’re signed in and the extension is active.
  • Code Errors: If you encounter issues, check for syntax errors or typos. Copilot can help, but it’s not perfect.
  • Browser Issues: Ensure your browser is updated for the best experience.

What’s Next: Building on Your Project

Now that you have a basic Todo List app, consider enhancing it by:

  • Adding task deletion functionality.
  • Storing tasks in local storage.
  • Styling with CSS.

These improvements will deepen your understanding of web development and make your project more robust.

Conclusion: Start Here

If you’re feeling overwhelmed by coding, GitHub Copilot is a powerful ally to help you build your first project quickly. Follow these steps, and you’ll have a functional app in just 2 hours. Remember, the key is to start small and iterate on your ideas.

What We Actually Use

For our projects, we rely on GitHub Copilot for rapid prototyping, but we also mix in traditional coding practices to ensure we understand what’s happening under the hood. We find Copilot invaluable for brainstorming and generating boilerplate code but still prefer to write critical logic ourselves.

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 Boost Productivity with AI Coding Tools in 30 Minutes

How to Boost Productivity with AI Coding Tools in 30 Minutes As indie hackers and solo founders, we often find ourselves bogged down by repetitive coding tasks that eat away at our

Feb 11, 20265 min read
Ai Coding Tools

10 Mistakes You’re Making with AI Coding Tools

10 Mistakes You’re Making with AI Coding Tools As a developer in 2026, you might think that using AI coding tools is a nobrainer. They promise to increase efficiency, reduce bugs,

Feb 11, 20264 min read
Ai Coding Tools

GPT-4 vs Codeium: Which AI Coding Tool is Best for Advanced Developers?

GPT4 vs Codeium: Which AI Coding Tool is Best for Advanced Developers? As advanced developers, we often find ourselves juggling multiple tools and frameworks to optimize our workfl

Feb 11, 20264 min read
Ai Coding Tools

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

How to Build Your First Web App Using AI Tools in Under 2 Hours Building a web app can feel like a monumental task, especially for beginners. The good news? With the rise of AI too

Feb 11, 20264 min read
Ai Coding Tools

How to Integrate AI Coding Assistance in Your Existing Workflow in 2 Hours

How to Integrate AI Coding Assistance in Your Existing Workflow in 2 Hours As indie hackers and solo founders, we often find ourselves juggling multiple roles – from coding to mark

Feb 11, 20264 min read
Ai Coding Tools

The 5 Best AI Coding Tools for Beginner Developers in 2026

The 5 Best AI Coding Tools for Beginner Developers in 2026 As a beginner developer, diving into the world of coding can feel overwhelming. With countless languages, frameworks, and

Feb 11, 20264 min read