Ai Coding Tools

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

By BTW Team3 min read

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

If you're a beginner looking to dive into coding, you've probably heard about GitHub Copilot. It's an AI-powered coding assistant that promises to make your life easier by suggesting code as you type. But does it really work? And can you actually build a project in under 2 hours? Spoiler alert: Yes, you can. Let’s break down how to get started with GitHub Copilot in 2026.

Prerequisites: What You Need Before You Start

Before we jump in, let’s ensure you have everything set up:

  1. GitHub Account: Create a free account on GitHub if you don't have one.
  2. Visual Studio Code (VS Code): Download and install VS Code, which is where you’ll write your code.
  3. GitHub Copilot Subscription: Sign up for GitHub Copilot. Pricing is $10/month for individuals, or $100/year, with a free trial available.
  4. Basic Understanding of Programming: Familiarity with concepts like variables, loops, and functions will help a lot.

Step 1: Setting Up Your Environment (15 Minutes)

  1. Install VS Code: After downloading, open the application.
  2. Install the GitHub Copilot Extension:
    • Go to the Extensions view (Ctrl+Shift+X).
    • Search for "GitHub Copilot" and click "Install".
  3. Sign In: Once installed, sign into your GitHub account within VS Code to activate Copilot.

Expected Output: You should see a Copilot icon in the toolbar, indicating that it’s ready to assist.

Step 2: Start a New Project (30 Minutes)

  1. Create a New Folder: Open a terminal in VS Code and create a new folder for your project:

    mkdir my-first-project
    cd my-first-project
    
  2. Initialize a Git Repository:

    git init
    
  3. Create a New File: Create an index.js file by right-clicking the folder in VS Code and selecting "New File".

  4. Start Coding: Type a comment like // Create a simple web server and see how Copilot suggests code to fulfill your request. Accept suggestions by pressing Tab.

Expected Output: A basic web server setup in index.js.

Step 3: Building Your Project (45 Minutes)

  1. Expand Functionality: As you build, type comments or function names, and let Copilot suggest the rest. For example:
    • Type // Function to handle requests and accept the suggestion for a request handler.
  2. Test Your Code: Run your server by typing node index.js in the terminal. Open your browser and navigate to localhost:3000 to see if it works.

Expected Output: Your web server should respond with a simple message or JSON output.

Step 4: Troubleshooting Common Issues (15 Minutes)

  1. Code Not Running: If there are errors in the terminal, check the syntax highlighted by VS Code. Copilot doesn’t always get it right.
  2. Suggestions Not Appearing: Ensure you are signed in to GitHub Copilot and the extension is enabled in VS Code settings.

What Could Go Wrong: Misunderstanding the suggestions can lead to bugs. Always manually test the code.

What’s Next: Expanding Your Project

Now that you have a basic project up and running, consider adding more features like:

  • User authentication
  • Database integration
  • Frontend with HTML/CSS

Explore more advanced topics and build upon this foundation.

Conclusion: Start Here

Building your first project with GitHub Copilot can be done in under 2 hours if you have the right setup. Start with a simple web server, and let Copilot guide you through the coding process. Remember, while Copilot is a powerful tool, it's not perfect—always review and test your code.

If you want to keep improving your skills, check out our podcast, Built This Week, where we dive into tools and projects just like this one.

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 Debug Code with AI: Achieve Faster Fixes in 30 Minutes

How to Debug Code with AI: Achieve Faster Fixes in 30 Minutes As indie hackers and solo founders, we all know the frustration of staring at lines of code, only to be met with crypt

May 20, 20264 min read
Ai Coding Tools

Cursor vs GitHub Copilot: A Detailed Comparison for Developers 2026

Cursor vs GitHub Copilot: A Detailed Comparison for Developers 2026 As developers, we’re always looking for tools that can streamline our workflow and boost productivity. With AI c

May 20, 20263 min read
Ai Coding Tools

Bolt.new vs Codeium: Which AI Coding Tool is Right for You?

Bolt.new vs Codeium: Which AI Coding Tool is Right for You? As indie hackers and solo founders, we often face the challenge of writing code efficiently, especially when juggling mu

May 20, 20263 min read
Ai Coding Tools

Bolt.new vs GitHub Copilot: A Head-to-Head Comparison for Developers

Bolt.new vs GitHub Copilot: A HeadtoHead Comparison for Developers As a developer, you've probably felt the pressure of tight deadlines and the constant need to produce highquality

May 20, 20263 min read
Ai Coding Tools

Why You Should Rethink Your Use of AI Coding Tools: Common Misconceptions

Why You Should Rethink Your Use of AI Coding Tools: Common Misconceptions As a solo founder or indie hacker, you may be tempted to lean heavily on AI coding tools to speed up your

May 20, 20264 min read
Ai Coding Tools

How to Automate 80% of Your Coding Tasks with AI in 2 Hours

How to Automate 80% of Your Coding Tasks with AI in 2 Hours As indie hackers and solo founders, we often find ourselves overwhelmed with coding tasks that eat into our precious tim

May 20, 20265 min read