Ai Coding Tools

How to Use GitHub Copilot to Write a Full App in Under 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Write a Full App in Under 2 Hours

As indie hackers and solo founders, we often find ourselves short on time and resources. The prospect of building a full app can be daunting, especially when you're juggling multiple projects. But what if I told you that you could leverage AI to speed up the process significantly? In 2026, GitHub Copilot has become a go-to tool for developers looking to write code quickly and efficiently. Here’s how you can use GitHub Copilot to build a complete app in under 2 hours.

Prerequisites: What You Need Before You Start

Before diving in, ensure you have the following:

  • A GitHub account: Necessary for accessing Copilot and hosting your code.
  • Visual Studio Code (VS Code): Copilot is a plugin for this popular code editor.
  • Familiarity with JavaScript: While Copilot can assist with various languages, we’ll focus on JavaScript for this guide.
  • An idea for your app: This could be anything from a simple to-do list to a more complex weather app.

Step 1: Install GitHub Copilot

To get started, you'll need to install GitHub Copilot in VS Code:

  1. Open VS Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar.
  3. Search for "GitHub Copilot" and click "Install."
  4. Sign in with your GitHub account when prompted.

Expected Output: You should see a small Copilot icon in the bottom right corner of your editor, indicating that it’s active.

Step 2: Setting Up Your Project

  1. Create a new directory for your app using the terminal:
    mkdir my-app
    cd my-app
    
  2. Initialize a new Node.js project:
    npm init -y
    
  3. Install any dependencies you might need. For example, if you're building a simple web app, you may want to install Express:
    npm install express
    

Expected Output: A new package.json file should be created, and your dependencies will be listed.

Step 3: Start Coding with Copilot

Now, here’s where the magic happens. Start creating your app by writing comments that describe what you want to do. Copilot will suggest code snippets based on these comments.

Example Comments and Code

  • To create a basic server:

    // Create an Express server that listens on port 3000
    

    Copilot will suggest the necessary code to create an Express server.

  • To create a route:

    // Create a GET route for /api/todos that returns a list of todos
    

    Copilot will generate the route handler for you.

Expected Output: Your server.js file will be populated with the server and route code without you typing everything manually.

Step 4: Testing Your App

Once you've set up your app, it's time to test it.

  1. Run your server:
    node server.js
    
  2. Open your browser and navigate to http://localhost:3000/api/todos to see if it returns the expected results.

Troubleshooting: If you encounter issues, double-check your code and ensure all routes and middleware are properly set up. Copilot may not always get it right, especially with complex logic.

What Could Go Wrong

  • Over-reliance on Copilot: While it’s tempting to accept all suggestions, always review the code for security and performance issues.
  • Incomplete Features: Sometimes Copilot may not generate the complete functionality you need, requiring manual intervention.

What’s Next?

Once you’ve built your app, consider deploying it using platforms like Heroku or Vercel. This will allow you to share your creation with others and gather feedback.

Conclusion: Start Here

If you’re looking to build an app quickly, GitHub Copilot is an invaluable tool. By following this guide, you can leverage AI to drastically reduce your development time. We’ve built several apps using Copilot, and it consistently saves us hours of coding.

What We Actually Use: For our own projects, we rely heavily on GitHub Copilot for boilerplate code and repetitive tasks. However, we still review and test all generated code to ensure quality.

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 GitHub Copilot is Overrated: 5 Critiques from Experienced Developers

Why GitHub Copilot is Overrated: 5 Critiques from Experienced Developers As we dive into 2026, it’s become clear that GitHub Copilot has generated a lot of buzz among developers. B

Apr 10, 20264 min read
Ai Coding Tools

Why GitHub Copilot is Overrated: Analyzing Its Limitations

Why GitHub Copilot is Overrated: Analyzing Its Limitations As a solo founder or indie hacker, it's easy to get swept up in the hype surrounding tools like GitHub Copilot. Promoted

Apr 10, 20264 min read
Ai Coding Tools

6 AI Coding Tools Every Solo Developer Should Use in 2026

6 AI Coding Tools Every Solo Developer Should Use in 2026 As a solo developer in 2026, you're probably juggling multiple roles—coding, debugging, and even marketing your project. T

Apr 10, 20264 min read
Ai Coding Tools

Why GitHub Copilot is Overrated: The Real Drawbacks Exposed

Why GitHub Copilot is Overrated: The Real Drawbacks Exposed As we dive into 2026, you might think that AI coding tools like GitHub Copilot are indispensable for developers. After a

Apr 10, 20264 min read
Ai Coding Tools

How to Implement AI-Powered Code Reviews in 15 Minutes

How to Implement AIPowered Code Reviews in 15 Minutes If you're a solo founder or indie hacker, you've probably found that getting code reviews done can be a tedious and timeconsum

Apr 10, 20264 min read
Ai Coding Tools

5 Overrated AI Coding Tools (And What to Use Instead)

5 Overrated AI Coding Tools (And What to Use Instead) As a indie hacker or solo founder, navigating the sea of AI coding tools can feel overwhelming. With so many options marketed

Apr 10, 20264 min read