Ai Coding Tools

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

By BTW Team3 min read

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

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.

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