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

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