Ai Coding Tools

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

By BTW Team4 min read

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

If you're a solo founder or side project builder looking to speed up your coding process, you might have heard of GitHub Copilot. The idea of an AI-powered coding assistant sounds fantastic, but can it actually help you ship your first project in just two hours? Spoiler alert: it can, but you need to know how to set it up and use it effectively.

Prerequisites: What You'll Need

Before diving in, make sure you have the following:

  1. GitHub Account: Sign up for free if you don't have one.
  2. Visual Studio Code (VS Code): Download and install this code editor.
  3. GitHub Copilot Subscription: Costs $10/month after a 60-day free trial. Perfect for indie builders.
  4. Basic Coding Knowledge: Familiarity with JavaScript or Python will help, but you can learn as you go.

Step 1: Setting Up GitHub Copilot

  1. Install VS Code: If you haven't already, download and install Visual Studio Code.
  2. Add the GitHub Copilot Extension: Go to the Extensions panel (Ctrl+Shift+X) and search for "GitHub Copilot". Click "Install".
  3. Log Into GitHub: After installation, you’ll need to log in to your GitHub account to activate Copilot.

Expected Output: You should see a small Copilot icon in the bottom right corner of your VS Code window once it's activated.

Step 2: Choosing Your Project

Decide on a simple project that you can realistically complete in two hours. Here are a few suggestions:

  • Todo List Application: A straightforward app to manage tasks.
  • Weather App: Fetch weather data from an API and display it.
  • Simple Blog: A basic blog where you can add, edit, and delete posts.

For this tutorial, let’s go with the Todo List Application.

Step 3: Building Your Todo List Application

3.1: Initialize Your Project

Open your terminal and create a new directory for your project:

mkdir todo-app
cd todo-app
npm init -y

3.2: Install Dependencies

You'll need a couple of packages to get started:

npm install express body-parser cors

3.3: Create Your Files

Create the following files in your project directory:

  • index.js
  • index.html
  • style.css

3.4: Start Coding with GitHub Copilot

Open index.js and start typing comments for what you want to achieve. For example, type:

// Create an Express server

Copilot will suggest the code for you. Accept the suggestion by pressing Tab.

Continue this process for the other functionalities of your Todo app:

  • Add a Todo: Type // Function to add a todo item and let Copilot fill in the logic.
  • Get Todos: Type // Function to get all todo items.
  • Delete a Todo: Type // Function to delete a todo item.

Expected Output: By the end of this step, you should have a functioning backend for your Todo app.

3.5: Build the Frontend

Open index.html and start defining your HTML structure. Again, use comments to guide Copilot:

<!-- Create a form to add todos -->

Expected Output: After accepting a few suggestions, you should have a form and a list to display your todos.

Troubleshooting: What Could Go Wrong

  1. Copilot Doesn't Suggest Code: Ensure that you are logged into GitHub within VS Code.
  2. Errors in Code: Remember, Copilot isn't perfect. Be ready to tweak the suggestions to fit your needs.

What's Next?

Once you finish your Todo app, consider deploying it using platforms like Heroku or Vercel. From there, you can start thinking about adding features like user authentication or a database to store todos persistently.

Conclusion: Start Here

Building your first project using GitHub Copilot can be a game changer, especially for indie developers looking to save time. With a solid plan, a few tools, and the right mindset, you can create a functioning application in just two hours.

If you're ready to dive in, follow the steps outlined here, and don’t forget to experiment with Copilot to see how it can best serve your needs.

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