Ai Coding Tools

How to Use GitHub Copilot for Beginners: Create a Simple App in 2 Hours

By BTW Team3 min read

How to Use GitHub Copilot for Beginners: Create a Simple App in 2026

If you're a beginner looking to dive into app development, you might feel overwhelmed by the coding landscape. Enter GitHub Copilot, an AI-powered coding assistant that can significantly speed up your development process. In just about 2 hours, you can leverage Copilot to help you build a simple app. But how do you get started? Let’s break it down step-by-step.

Prerequisites for Getting Started

Before we jump into building your app, here’s what you’ll need:

  1. GitHub Account: Sign up for a free account if you don’t already have one.
  2. Visual Studio Code (VSCode): Download and install it from here.
  3. GitHub Copilot Subscription: As of August 2026, Copilot costs $10/month after a free trial.
  4. Basic Understanding of JavaScript/HTML: Familiarity will help but isn’t strictly necessary.

Step 1: Setting Up Your Environment

  1. Install VSCode: Once installed, open VSCode.
  2. Install GitHub Copilot: Go to the Extensions view (Ctrl+Shift+X), search for "GitHub Copilot," and click install.
  3. Sign Into GitHub: After installation, sign in to your GitHub account from within VSCode to activate Copilot.

Expected output: You should see a Copilot icon in the bottom right corner of your VSCode window.

Step 2: Creating Your First App

2.1 Initialize Your Project

  1. Create a New Folder: Name it my-simple-app.
  2. Open Terminal in VSCode: Use (Ctrl + `) to open the terminal.
  3. Run the following command:
    mkdir my-simple-app && cd my-simple-app && npm init -y
    
  4. Install Express: This will be our backend framework.
    npm install express
    

2.2 Start Coding with GitHub Copilot

  1. Create a new file: app.js.
  2. Start typing your first endpoint: For example, type // create a simple express server and watch Copilot suggest code. Accept the suggestion by hitting Tab.

2.3 Sample Code Snippet

Here's what a simple Express server code might look like after accepting Copilot’s suggestions:

const express = require('express');
const app = express();
const PORT = process.env.PORT || 3000;

app.get('/', (req, res) => {
  res.send('Hello, World!');
});

app.listen(PORT, () => {
  console.log(`Server is running on port ${PORT}`);
});

Expected output: You should see Hello, World! when you navigate to http://localhost:3000 in your browser.

Troubleshooting Common Issues

Problem: "Cannot find module 'express'"

Solution: Ensure you installed Express correctly. Re-run:

npm install express

Problem: Server doesn't start

Solution: Check if you are in the correct directory in your terminal. Use ls to list files.

What's Next?

Once your app is up and running, consider expanding it. Here are a few suggestions:

  1. Add more routes: Experiment with different endpoints.
  2. Introduce a front-end: Use HTML/CSS to enhance the user interface.
  3. Deploy Your App: Look into platforms like Heroku or Vercel for deployment.

Conclusion: Start Here

GitHub Copilot can drastically reduce your coding time, especially for beginners. By following this guide, you can build a simple app in about 2 hours. Start with the basics, and don't hesitate to let Copilot do some of the heavy lifting.

What We Actually Use

In our experience, we find GitHub Copilot indispensable for rapid prototyping. It’s a great tool for beginners and even seasoned developers looking to save time. Just remember, it’s not perfect — always review the code it suggests.

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

How to Automate Your Development Workflow with AI in 3 Easy Steps

How to Automate Your Development Workflow with AI in 3 Easy Steps (2026) As indie hackers and solo founders, we often find ourselves buried under a mountain of repetitive tasks tha

Sep 3, 20264 min read
Ai Coding Tools

How to Boost Your Coding Velocity with AI in 30 Minutes

How to Boost Your Coding Velocity with AI in 30 Minutes As a solo founder or indie hacker, you know that time is your most precious resource. The idea of boosting your coding veloc

Sep 3, 20264 min read
Ai Coding Tools

Why Most Developers Get GitHub Copilot Wrong: 5 Myths Busted

Why Most Developers Get GitHub Copilot Wrong: 5 Myths Busted As we dive into 2026, GitHub Copilot has become a staple in many developers' toolkits. However, despite its popularity,

Sep 3, 20263 min read
Ai Coding Tools

How to Use AI Coding Tools to Boost Productivity in Under 2 Hours

How to Use AI Coding Tools to Boost Productivity in Under 2 Hours As indie hackers, we all know the struggle of trying to stay productive while juggling multiple projects. The prom

Sep 3, 20265 min read
Ai Coding Tools

Vercel vs GitHub Copilot: Which AI Tool is Right for Your Project?

Vercel vs GitHub Copilot: Which AI Tool is Right for Your Project? As a solo founder or indie hacker, choosing the right tools can be a makeorbreak decision for your project. With

Sep 3, 20263 min read
Ai Coding Tools

Why GitHub Copilot is Not the Magic Bullet for Every Programmer: Debunking the Myths

Why GitHub Copilot is Not the Magic Bullet for Every Programmer: Debunking the Myths As a programmer, I’ve been there: staring at a blank screen, hoping for a burst of inspiration

Sep 3, 20264 min read