Ai Coding Tools

How to Write and Deploy Your First GitHub Copilot-assisted App 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 to using GitHub Copilot to build and deploy an application quickly, perfect for beginners looking to get hands-on experience.

If you’ve ever stared at a blank code editor, wondering where to begin, you’re not alone. As indie hackers and solo founders, we often find ourselves short on time and overwhelmed by the prospect of building something from scratch. But what if I told you that with GitHub Copilot, you could write and deploy a simple app in under two hours? In this guide, I’ll walk you through the process of leveraging GitHub Copilot for efficient app development while highlighting the tools you'll need along the way.

Prerequisites: What You Need to Get Started

Before diving into the nitty-gritty, there are a few essentials you’ll need:

  • GitHub Account: Sign up for free if you don’t have one.
  • Visual Studio Code: Download and install this code editor.
  • GitHub Copilot: Subscribe to GitHub Copilot at $10/month for the best experience.
  • Node.js: Install this for running your JavaScript code.
  • Basic JavaScript Knowledge: Familiarity with JavaScript will help, but Copilot can assist you significantly.

Step 1: Setting Up Your Environment (15 minutes)

  1. Install Visual Studio Code: If you haven’t installed it yet, download it from the official site.
  2. Set Up GitHub Copilot:
    • Open Visual Studio Code and go to Extensions (Ctrl+Shift+X).
    • Search for “GitHub Copilot” and install it.
    • Sign in with your GitHub account.
  3. Install Node.js: Download from the Node.js website and follow the installation instructions.

Step 2: Create Your First App (30 minutes)

  1. Create a New Project:

    • Open a terminal in Visual Studio Code and run:
      mkdir my-first-app
      cd my-first-app
      npm init -y
      
    • This sets up a new Node.js project.
  2. Create an index.js File:

    • Create a new file called index.js in your project directory.
    • Start typing a comment like // Simple web server and watch Copilot suggest code for a basic web server. Accept the suggestion.
  3. Customize Your Code:

    • You may want to make adjustments to the suggested code. For example, add a simple endpoint that returns "Hello, World!" when accessed.
  4. Run Your Application:

    • In your terminal, run:
      node index.js
      
    • You should see your server running!

Step 3: Deploy Your App (45 minutes)

  1. Choose a Hosting Platform:

    • For quick deployment, I recommend using Vercel or Heroku. Both offer free tiers.
    • I’ll use Vercel in this example.
  2. Deploying on Vercel:

    • Sign up for a Vercel account.
    • Install the Vercel CLI:
      npm install -g vercel
      
    • In your terminal, run:
      vercel
      
    • Follow the prompts to deploy your app.
  3. Access Your App:

    • Once deployed, Vercel will provide a URL where you can view your app live!

Troubleshooting: What Could Go Wrong

  • Copilot Suggestions Aren’t Appearing: Make sure you’re signed in and have the extension enabled.
  • Server Not Starting: Check for any syntax errors in your code. Use the terminal to identify error messages.
  • Deployment Issues: Ensure you’re logged into Vercel and have followed the deployment prompts correctly.

What's Next: Building on Your Foundation

Now that you've successfully built and deployed your first app, consider enhancing it. Here are some ideas:

  • Add a database for dynamic content (try MongoDB or Firebase).
  • Create a frontend using a framework like React or Vue.js.
  • Explore more advanced features of GitHub Copilot to optimize your coding process.

Conclusion: Your Path Forward

Building an app with GitHub Copilot can be a game-changer for productivity. By following these steps, you can write and deploy a simple application in under two hours. Start with a small project, and as you grow more comfortable with Copilot, tackle more complex challenges.

What are you waiting for? Grab your tools and start building today!

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