Ai Coding Tools

How to Build a Simple App Using GitHub Copilot in 45 Minutes

By BTW Team3 min read

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

In short

A step-by-step tutorial demonstrating how to leverage GitHub Copilot to construct a basic application swiftly while learning the basics of coding.

Let’s be real: building an app can feel daunting, especially if you’re a solo founder or indie hacker who’s not a coding wizard. But what if I told you that you could leverage AI to turbocharge your development process? With GitHub Copilot, you can build a simple app in just 45 minutes. Sounds too good to be true? Let’s dive in.

Prerequisites: What You Need Before You Start

Before we jump into the app-building process, there are a few things you’ll need:

  1. GitHub Account: Sign up for free if you don’t have one.
  2. Visual Studio Code (VS Code): Download and install VS Code, which is a free code editor.
  3. GitHub Copilot: You’ll need a subscription, which costs $10/month after a 60-day free trial.
  4. Basic Understanding of JavaScript: Familiarity with coding concepts will help, but I’ll guide you through the basics.

Step 1: Set Up Your Environment (10 Minutes)

  1. Install GitHub Copilot:

    • Open VS Code.
    • Go to Extensions (Ctrl+Shift+X).
    • Search for “GitHub Copilot” and click install.
  2. Create a New Project:

    • Open a new terminal in VS Code (Ctrl+`).
    • Run mkdir my-simple-app to create a new directory and cd my-simple-app to enter it.
    • Initialize a new Node.js project by running npm init -y.
  3. Install Express:

    • Run npm install express to set up a simple server.

Step 2: Start Coding with GitHub Copilot (25 Minutes)

Now comes the fun part. You’ll use GitHub Copilot to write code. Here’s how:

  1. Create the Server File:

    • In your project folder, create a file called server.js.
    • Start typing const express = require('express'); and watch Copilot suggest the rest of the server setup. Hit Tab to accept suggestions.
  2. Set Up Routes:

    • Type app.get('/', (req, res) => { and see Copilot suggest a simple response. Accept it to create your homepage.
  3. Run Your Server:

    • Add app.listen(3000, () => console.log('Server running on http://localhost:3000')); to start the server.
    • Save the file and run node server.js in the terminal.
  4. Test Your App:

    • Open your browser and go to http://localhost:3000. You should see your response!

Step 3: Troubleshooting Common Issues

While the process is straightforward, you might run into a few hiccups:

  • Copilot Doesn’t Suggest Code: Make sure you’re connected to the internet and GitHub Copilot is enabled in VS Code.
  • Server Not Starting: Double-check that you’ve installed Express correctly. If you see errors, read the console output for hints on what’s wrong.

What's Next: Enhancing Your App

Now that you have a basic app running, here are some ideas for enhancements:

  • Add More Routes: Create additional pages for different functionalities.
  • Integrate a Database: Use MongoDB or SQLite for data storage.
  • Deploy Your App: Consider using platforms like Heroku or Vercel for deployment, which have free tiers.

Conclusion: Start Here

Building an app doesn’t have to be a long, drawn-out process. With GitHub Copilot, you can create a simple app in just 45 minutes. Start by following this guide, and don’t hesitate to iterate on your project. The more you play with it, the more comfortable you’ll become.

What We Actually Use

In our experience, GitHub Copilot is a powerful tool for speeding up development, but it’s not perfect. We often pair it with Stack Overflow for troubleshooting and specific coding challenges.

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