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

Why AI Coding Tools Are Overrated: The Hidden Challenges

Why AI Coding Tools Are Overrated: The Hidden Challenges (2026) As builders, we often hear the hype around AI coding tools promising to supercharge our productivity and reduce the

May 16, 20264 min read
Ai Coding Tools

Top 7 AI Coding Tools: Comparison for Solo Developers

Top 7 AI Coding Tools: Comparison for Solo Developers As a solo developer, you’re likely juggling multiple roles—from coding to debugging to deploying. The right AI coding tools ca

May 16, 20264 min read
Ai Coding Tools

How to Use AI Coding Assistants to Build Your First App in 30 Days

How to Use AI Coding Assistants to Build Your First App in 30 Days Building your first app can feel like a daunting task, especially if you're a solo founder or indie hacker. But w

May 16, 20265 min read
Ai Coding Tools

Best AI Tools for Reducing Coding Time by 50% in 2026

Best AI Tools for Reducing Coding Time by 50% in 2026 As an indie hacker or solo founder, the pressure to ship products quickly can feel overwhelming. You want to innovate and crea

May 16, 20265 min read
Ai Coding Tools

Why AI Coding Tools Aren't Always the Solution: 5 Myths Debunked

Why AI Coding Tools Aren't Always the Solution: 5 Myths Debunked In 2026, the allure of AI coding tools is stronger than ever. They promise to boost productivity, reduce errors, an

May 16, 20264 min read
Ai Coding Tools

Why Popular AI Coding Tools are Overrated Among Intermediate Coders

Why Popular AI Coding Tools are Overrated Among Intermediate Coders As an intermediate coder, you might feel the pressure to adopt every new AI coding tool that hits the market. Wi

May 16, 20264 min read