Ai Coding Tools

How to Complete Your First Project Using GitHub Copilot in Just 2 Hours

By BTW Team3 min read

How to Complete Your First Project Using GitHub Copilot in Just 2 Hours

If you’re a solo founder or indie hacker, you know the struggle of balancing project deadlines with the need to learn new tools. GitHub Copilot can feel like a magic wand, but getting started can be overwhelming. What if I told you that you could complete your first project using GitHub Copilot in just 2 hours? Yes, it’s possible, and I’m here to show you how.

Prerequisites: What You Need to Get Started

Before diving in, make sure you have the following:

  • A GitHub account (Free tier is sufficient)
  • Visual Studio Code (VS Code) installed on your machine
  • GitHub Copilot subscription ($10/month or $100/year as of February 2026)
  • Basic understanding of JavaScript or Python (we'll use JavaScript for this project)

Step-by-Step Guide to Your First Project

Step 1: Setting Up Your Environment (15 minutes)

  1. Install Visual Studio Code: If you haven't already, download and install VS Code.
  2. Install GitHub Copilot: In VS Code, go to Extensions (or press Ctrl+Shift+X), search for "GitHub Copilot," and click "Install."
  3. Sign in to GitHub: After installation, sign in with your GitHub account to activate Copilot.

Step 2: Create a New Project (30 minutes)

  1. Create a New Folder: Open a new folder in VS Code where you'll store your project files.
  2. Create Your First File: Inside the folder, create a new JavaScript file, e.g., app.js.
  3. Initialize Your Project: Open a terminal in VS Code (Ctrl+`) and run:
    npm init -y
    

Step 3: Start Coding with Copilot (1 hour)

  1. Write Your First Function: Start typing a simple function, like:

    function add(a, b) {
    

    Copilot will suggest the completion. Accept it by pressing Tab.

  2. Create More Functions: Continue writing functions for your project. For example, if you want to build a simple calculator, type:

    function subtract(a, b) {
    

    and let Copilot fill in the logic.

  3. Test Your Functions: Add a few console logs to test your functions:

    console.log(add(2, 3)); // Should log 5
    console.log(subtract(5, 2)); // Should log 3
    

Step 4: Debugging and Final Touches (15 minutes)

  1. Run Your Code: In the terminal, run:
    node app.js
    
  2. Fix Errors: If you encounter any errors, Copilot can help you debug. Just ask it:
    // What is wrong with this code?
    

What Could Go Wrong

  • Copilot Suggestions: Sometimes, Copilot may suggest incorrect code. Always review what it generates.
  • Environment Issues: Ensure you have Node.js installed, or you may run into issues when trying to execute your code.

What's Next

Once you’ve completed this project, consider building upon it. You could create a web interface using frameworks like React or Vue.js. You might also explore more complex projects, such as integrating APIs or databases.

Conclusion: Start Here

If you're looking to get your hands dirty with coding, GitHub Copilot is a powerful ally. Follow this guide, and you’ll have a working project in just 2 hours. Just remember to review the code and keep experimenting with new features.

What We Actually Use

For our projects, we heavily rely on GitHub Copilot for rapid prototyping, especially when we’re working on JavaScript applications. While it’s not perfect, it significantly speeds up our coding process.

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