Ai Coding Tools

How to Complete a Simple App with GitHub Copilot in Under 2 Hours

By BTW Team3 min read

Comparing tools? See the AI tools tested on the show.

In short

Step-by-step guide on how to use GitHub Copilot to build and deploy a simple app within 2 hours, perfect for jumpstarting your coding projects.

Have you ever found yourself staring at a blank screen, overwhelmed by the prospect of building an app from scratch? It can feel daunting, especially if you're a solo founder or indie hacker juggling multiple responsibilities. But what if I told you that you could leverage AI to accelerate your development process? In this guide, I'll show you how to complete a simple app using GitHub Copilot in under 2 hours.

Time Estimate: 2 Hours

Before we dive in, let’s clarify that you can finish this project in about 2 hours if you follow the steps closely. You’ll need some basic programming knowledge, but Copilot will do a lot of the heavy lifting for you.

Prerequisites

  1. GitHub Account: You'll need an account to access Copilot.
  2. Visual Studio Code: Download and install this code editor if you haven’t already.
  3. GitHub Copilot: Subscribe for $10/month or $100/year.
  4. Node.js: Install Node.js to run your JavaScript app.

Step-by-Step Guide

Step 1: Set Up Your Environment

  1. Install Visual Studio Code: If you haven't done this yet, go to the official site and download it.
  2. Install GitHub Copilot: Open Visual Studio Code, go to Extensions, and search for GitHub Copilot to install it.

Expected Output: You should see a Copilot icon in your toolbar after installation.

Step 2: Create a New Project

  1. Open a new terminal in Visual Studio Code and run:
    mkdir simple-app
    cd simple-app
    npm init -y
    
  2. Create an index.js file:
    touch index.js
    

Expected Output: A new JavaScript project structure.

Step 3: Start Coding with Copilot

  1. In index.js, start by typing a comment that describes what you want to build. For example:
    // Create a simple HTTP server
    
  2. Wait for Copilot to suggest code. Accept the suggestion by pressing Tab.

Expected Output: A basic HTTP server setup in JavaScript.

Step 4: Add Functionality

  1. Next, enhance your app functionality by adding a simple endpoint. Just type another comment:
    // Add a GET endpoint that returns "Hello, World!"
    
  2. Again, accept Copilot’s suggestions.

Expected Output: Your app should now respond with "Hello, World!" when accessed.

Step 5: Run Your App

  1. Back in the terminal, run your app:
    node index.js
    
  2. Open a browser and navigate to http://localhost:3000.

Expected Output: You should see "Hello, World!" displayed in your browser.

Troubleshooting

If you encounter issues, here are some common problems and solutions:

  • Error: Port already in use: Change the port number in your code.
  • Copilot not suggesting code: Ensure you're logged in and the extension is enabled.

What's Next?

Once you’ve built your simple app, consider expanding its features or deploying it using platforms like Heroku or Vercel. You can also explore integrating a database for more complex functionalities.

Conclusion

GitHub Copilot can be a powerful ally in your app-building journey. By following these steps, you can leverage AI to speed up development and focus on bringing your ideas to life.

What We Actually Use

We use GitHub Copilot for rapid prototyping and small features. Its suggestions save us time, but we still review the code for quality and security.

If you're looking for a practical way to build apps faster, start with GitHub Copilot. It might just be the tool you need to turn your ideas into reality without the usual headache.

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools
Ai Coding Tools

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them)

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them) In the everevolving landscape of AI coding tools, it's easy to get swept up in the hype. As indie hackers and s

Nov 30, 20263 min read
Ai Coding Tools

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026 In 2026, the landscape for indie hackers and solo founders has evolved significantly, especially with the advent

Nov 26, 20264 min read
Ai Coding Tools

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026 If you’re a developer stuck maintaining legacy code, you know the frustration. It’s like navigating a maze blindfolde

Nov 23, 20264 min read
Ai Coding Tools

10 AI Coding Tools That Will Save You Hours of Debugging in 2026

10 AI Coding Tools That Will Save You Hours of Debugging in 2026 Debugging can feel like a neverending cycle of frustration. Whether you're a solo founder or an indie hacker, spend

Nov 18, 20265 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for MVP Development

10 Common Mistakes When Using AI Coding Tools for MVP Development As a founder in 2026, you’re likely aware that AI coding tools can significantly speed up the MVP development proc

Nov 16, 20264 min read
Ai Coding Tools

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026 As a beginner developer, you’ve probably come across a ton of buzz surrounding AI coding tools. But with all the hyp

Nov 12, 20263 min read