Ai Coding Tools

How to Build Your First Project Using GitHub Copilot in Under 2 Hours

By BTW Team4 min read

How to Build Your First Project Using GitHub Copilot in Under 2 Hours

Building your first project can feel overwhelming, especially if you're new to coding or just getting started with AI tools. You might think that using something like GitHub Copilot would take longer than it actually does, but in my experience, you can whip up a functional project in under 2 hours. Let’s break down how to do this effectively in 2026.

Prerequisites: What You Need to Get Started

Before we dive into building, make sure you have the following:

  1. GitHub Account: Sign up for free at GitHub.
  2. Visual Studio Code (VSCode): Download and install VSCode.
  3. GitHub Copilot: Subscribe to GitHub Copilot for $10/month after a 30-day free trial.
  4. Basic Understanding of JavaScript: Familiarity with the syntax will help, but you don’t need to be an expert.

Step 1: Setting Up Your Environment (15 minutes)

  1. Install VSCode: If you haven't already, go to the VSCode website and download the application for your operating system.
  2. Install GitHub Copilot: Open VSCode, go to the Extensions view (Ctrl+Shift+X), and search for "GitHub Copilot." Install it and follow the prompts to log in to your GitHub account.
  3. Create a New Repository: On GitHub, create a new repository for your project. Clone it to your local machine using VSCode.

Step 2: Starting Your Project (30 minutes)

  1. Create Your Main File: Open a new JavaScript file (e.g., app.js) in your cloned repository.
  2. Write Your First Function: Type a comment that describes what you want to do, like // Function to calculate the sum of two numbers. GitHub Copilot will suggest code snippets based on your comment.
  3. Accept Suggestions: Press Tab to accept Copilot’s suggestions. You can tweak the code as needed.

Example Code:

// Function to calculate the sum of two numbers
function sum(a, b) {
    return a + b;
}

Step 3: Building Out Your Project (45 minutes)

  1. Expand Your Functionality: Continue adding comments for other features you want. For instance, // Function to calculate the difference between two numbers.
  2. Use Copilot for Repetitive Tasks: If you find yourself writing similar functions, Copilot can generate these quickly. Just start typing, and it will suggest completions.
  3. Test Your Code: Use Node.js (install it if you haven't) to run your JavaScript file and test the functions you’ve built. This will ensure everything works as expected.

Expected Output:

$ node app.js
Sum: 5
Difference: 3

Troubleshooting: What Could Go Wrong

  1. Copilot Doesn’t Suggest Anything: Make sure you have an active subscription and that the extension is enabled.
  2. Code Doesn’t Work: Double-check your syntax and logic. Copilot may not always get it right, so be prepared to debug.
  3. Installation Issues: If VSCode or Copilot isn't working, try reinstalling or checking online forums for troubleshooting tips.

What's Next: Progressing After Your First Project

Once you’ve successfully built and tested your first project, consider:

  1. Building a More Complex Application: Use frameworks like React or Express to expand your skills.
  2. Contributing to Open Source: Look for beginner-friendly repositories on GitHub to contribute to.
  3. Exploring Other Tools: Check out alternatives like Replit or CodeSandbox if you want to see how they stack up against Copilot.

Conclusion: Start Here

In our experience, GitHub Copilot drastically reduces the time it takes to build functional projects, making it an excellent tool for beginners and seasoned developers alike. If you're looking to get started with your first project quickly, follow the steps outlined above.

Tools Comparison

| Tool | Pricing | Best For | Limitations | Our Verdict | |-------------------|-------------------------|------------------------------|-----------------------------------|---------------------------------| | GitHub Copilot | $10/mo after free trial | Code completion and suggestions | Doesn't always understand context | Essential for quick prototyping | | Replit | Free + $7/mo Pro | Collaborative coding | Limited features on free version | Good for real-time collaboration | | CodeSandbox | Free + $9/mo Pro | Rapid prototyping | Can be slow for larger projects | Great for quick demos |

What We Actually Use

For our projects, we primarily rely on GitHub Copilot for coding assistance, but we also use Replit for collaborative sessions and CodeSandbox for quick prototypes.

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