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

Cursor vs. GitHub Copilot: Which AI Tool is the Best for Experienced Developers?

Cursor vs. GitHub Copilot: Which AI Tool is the Best for Experienced Developers in 2026? As experienced developers, we often find ourselves kneedeep in code, searching for ways to

Aug 19, 20263 min read
Ai Coding Tools

How to Debug Code Like a Pro in Under 30 Minutes Using AI Tools

How to Debug Code Like a Pro in Under 30 Minutes Using AI Tools (2026) Debugging code can feel like searching for a needle in a haystack. If you’re a solo founder or indie hacker,

Aug 19, 20264 min read
Ai Coding Tools

5 AI Coding Tools You Haven't Tried Yet in 2026

5 AI Coding Tools You Haven't Tried Yet in 2026 As a founder or indie hacker, you’re probably swimming in a sea of coding tools that promise to make your life easier. But let's fac

Aug 19, 20264 min read
Ai Coding Tools

Why Most Developers Overlook Codeium and Its Powerful Features

Why Most Developers Overlook Codeium and Its Powerful Features In 2026, the landscape of AI coding tools is more crowded than ever. While many developers flock to the more popular

Aug 19, 20264 min read
Ai Coding Tools

Best 5 AI Coding Tools for 2026: Beginner-Friendly Options

Best 5 AI Coding Tools for 2026: BeginnerFriendly Options If you're a solo founder or indie hacker looking to dip your toes into coding, you might feel overwhelmed by the myriad of

Aug 19, 20264 min read
Ai Coding Tools

How to Build a Prototype with AI Tools in Just 2 Hours

How to Build a Prototype with AI Tools in Just 2 Hours As indie hackers and solo founders, we often find ourselves in a constant race against time. You have a brilliant idea, but t

Aug 19, 20265 min read