Ai Coding Tools

How to Use GitHub Copilot to Write Your First Full Application in Under 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Write Your First Full Application in Under 2 Hours

If you’re like most indie hackers or solo founders, the thought of building an entire application can feel overwhelming. You might have great ideas, but the coding part? That’s where the anxiety kicks in. Enter GitHub Copilot—a powerful AI-powered coding assistant that can help you whip up your first full application in under two hours. But does it live up to the hype? Let's dig in.

Prerequisites: What You Need to Get Started

Before we dive into the nitty-gritty, make sure you have the following:

  • GitHub Account: Sign up for free if you don’t have one.
  • Visual Studio Code: Download and install this code editor. It’s free and widely used.
  • GitHub Copilot Subscription: As of June 2026, it's $10/month after a free trial.
  • Basic Understanding of JavaScript: You don’t need to be an expert, but familiarity with the syntax will help.

Step 1: Set Up Your Environment

Setting up your environment takes about 15 minutes:

  1. Install Visual Studio Code: Follow the installation instructions for your OS.
  2. Install GitHub Copilot: Open VS Code, go to Extensions (Ctrl+Shift+X), and search for "GitHub Copilot." Click install.
  3. Sign in to GitHub: Once installed, you’ll be prompted to sign in to your GitHub account to activate Copilot.

Expected Output: You should see a Copilot icon in the bottom right corner of VS Code, indicating it's active.

Step 2: Create Your First Application

Let’s build a simple web application that displays a list of your favorite books. This will take about 1.5 hours.

  1. Create a New Folder: Name it FavoriteBooksApp.

  2. Open the Terminal: Inside VS Code, go to Terminal > New Terminal.

  3. Initialize a New Project:

    mkdir FavoriteBooksApp
    cd FavoriteBooksApp
    npm init -y
    
  4. Install Express:

    npm install express
    
  5. Create Your Main File: Create a file called app.js.

  6. Start Coding with Copilot: In app.js, start typing:

    const express = require('express');
    const app = express();
    const port = 3000;
    
    app.get('/', (req, res) => {
        res.send('Welcome to my favorite books app!');
    });
    
    app.listen(port, () => {
        console.log(`App listening at http://localhost:${port}`);
    });
    

    As you type, Copilot will suggest completions. Accept the suggestions by pressing Tab.

Expected Output: Running node app.js in the terminal should give you a message indicating the app is running.

Step 3: Add Functionality to Display Books

Next, let’s enhance the application to display a list of books. This should take about 30 minutes.

  1. Create a Books Array: Add the following code before the app.get route:

    const books = [
        { title: '1984', author: 'George Orwell' },
        { title: 'To Kill a Mockingbird', author: 'Harper Lee' },
        { title: 'The Great Gatsby', author: 'F. Scott Fitzgerald' }
    ];
    
  2. Modify the Route: Change the app.get route to:

    app.get('/books', (req, res) => {
        res.json(books);
    });
    

Expected Output: Navigating to http://localhost:3000/books in your browser should display the list of books in JSON format.

Troubleshooting: What Could Go Wrong

  • Copilot Fails to Suggest: If Copilot isn’t suggesting code, ensure you’re connected to the internet and signed in to GitHub.
  • Syntax Errors: If you see errors, double-check your code for typos or missing brackets.

What's Next?

Now that you’ve built a basic application, consider adding features like a front-end interface using React or Vue.js, or even deploying your app using Heroku or Vercel. Each of these steps can be done using Copilot for code suggestions.

Conclusion: Start Here

Using GitHub Copilot can dramatically reduce the time it takes to code your first application. In our experience, it’s a solid tool for beginners and seasoned developers alike. It won’t write perfect code every time, but it can get you 80% of the way there, especially if you’re just starting out.

So, if you’re ready to build your first app, grab your tools, and get coding with Copilot. You might be surprised at how much you can accomplish in just two hours.

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 Most Developers Misunderstand AI Coding Tools: Debunking 5 Myths

Why Most Developers Misunderstand AI Coding Tools: Debunking 5 Myths As we move through 2026, AI coding tools are becoming increasingly popular among developers. However, many stil

Jun 5, 20264 min read
Ai Coding Tools

How to Build Your First Application Using AI Tools in Just 48 Hours

How to Build Your First Application Using AI Tools in Just 48 Hours Building your first application can feel like a daunting task, especially if you’re juggling a fulltime job or s

Jun 5, 20264 min read
Ai Coding Tools

Why AI Coding Tools Are Overrated and What to Use Instead

Why AI Coding Tools Are Overrated and What to Use Instead As a solo founder or indie hacker, you’re probably inundated with buzz about AI coding tools that promise to revolutionize

Jun 5, 20265 min read
Ai Coding Tools

How to Use GitHub Copilot to Speed Up Your Coding by 50% in 30 Days

How to Use GitHub Copilot to Speed Up Your Coding by 50% in 30 Days As indie hackers and solo founders, we’re always looking for ways to maximize our productivity, especially when

Jun 5, 20263 min read
Ai Coding Tools

Vercel vs GitHub Copilot: Which AI Tool Enhances Coding Efficiency More?

Vercel vs GitHub Copilot: Which AI Tool Enhances Coding Efficiency More? (2026) If you’re a solo founder or indie hacker, you know the constant struggle of maximizing your coding e

Jun 5, 20263 min read
Ai Coding Tools

Why GitHub Copilot Isn't the Ultimate AI Coding Solution

Why GitHub Copilot Isn't the Ultimate AI Coding Solution In 2026, the buzz around AI coding tools has reached a fever pitch, with GitHub Copilot often touted as the goto solution f

Jun 5, 20264 min read