Ai Coding Tools

How to Use GitHub Copilot to Code Your First Simple App in 1 Hour

By BTW Team3 min read

How to Use GitHub Copilot to Code Your First Simple App in 1 Hour

For many indie hackers and side project builders, the idea of coding an app can be daunting. You might think you need years of experience or advanced knowledge to get started. But what if I told you that with a tool like GitHub Copilot, you can build a simple app in about an hour? In 2026, this AI-powered coding assistant has become a game-changer for developers at all levels, especially for those of us who are just starting out.

Prerequisites

Before diving in, let’s make sure you have everything you need to get started:

  1. GitHub Account: If you don’t have one, sign up for free at GitHub.com.
  2. Visual Studio Code (VS Code): Download and install VS Code, which is a popular code editor.
  3. GitHub Copilot Subscription: GitHub Copilot costs $10/month or $100/year after a free trial. Make sure to sign up for the trial to test it first.
  4. Basic Understanding of JavaScript: While Copilot can help a lot, having a basic grasp of JavaScript will make the process smoother.

Step 1: Set Up Your Environment (10 minutes)

  1. Install VS Code: If you haven’t already, install Visual Studio Code.
  2. Install GitHub Copilot: Open VS Code, go to extensions (Ctrl+Shift+X), and search for "GitHub Copilot". Click "Install".
  3. Sign In to GitHub: Once installed, you’ll need to sign in to your GitHub account to activate Copilot.

Step 2: Create a New Project (10 minutes)

  1. Open a New Folder: In VS Code, create a new folder for your project.
  2. Initialize a Git Repository: Open the terminal (Ctrl+) and run git init` to initialize a new Git repository.
  3. Create an HTML File: Create a new file named index.html.

Step 3: Write Your First Code with Copilot (30 minutes)

  1. Start Coding: Begin typing a simple HTML structure in index.html. As you type, Copilot will suggest code. For example, start with:
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>My Simple App</title>
    </head>
    <body>
        <h1>Hello World</h1>
    </body>
    </html>
    
  2. Add Interactivity: Next, create a script.js file for JavaScript. Start typing a function, like:
    function greet() {
        alert("Welcome to my simple app!");
    }
    
    Copilot will suggest the rest. Just hit Tab to accept its suggestions.
  3. Link Your JavaScript: Make sure to link your script.js in your HTML file. Type <script src="script.js"></script> right before the closing </body> tag.

Step 4: Preview Your App (5 minutes)

  1. Open Live Server: Install the Live Server extension in VS Code.
  2. Start Live Server: Right-click on index.html and select "Open with Live Server". This will launch your app in the browser.
  3. Test It: Click anywhere on the page to see your greeting alert.

Troubleshooting

  • Copilot Not Suggesting: If Copilot isn’t providing suggestions, make sure you’re connected to the internet and logged into your GitHub account.
  • Code Errors: If your app doesn’t work, check for typos in your code, especially in your script linking.

What’s Next?

Now that you have your first app up and running, consider expanding it. Add CSS for styling, or try incorporating more JavaScript functionality. You could also explore backend options like Node.js or Firebase to make your app more dynamic.

Conclusion

Using GitHub Copilot, you can create a simple app in just about an hour. It’s an invaluable tool for anyone looking to get started with coding without feeling overwhelmed.

Start here: If you’re new to coding, I recommend following this tutorial step-by-step and experimenting with Copilot’s suggestions. You’ll be surprised at how quickly you can build something functional.

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

5 Advanced AI Tools for Code Optimization and Speed in 2026

5 Advanced AI Tools for Code Optimization and Speed in 2026 As developers, we’re always on the lookout for tools that can enhance our productivity and streamline our coding process

May 14, 20264 min read
Ai Coding Tools

Cursor vs GitHub Copilot: What You Need to Know in 2026

Cursor vs GitHub Copilot: What You Need to Know in 2026 As an indie hacker, you often find yourself in the trenches, coding late into the night, trying to bring your vision to life

May 14, 20263 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which AI Tool Will Transform Your Coding in 2026?

Cursor vs GitHub Copilot: Which AI Tool Will Transform Your Coding in 2026? As a solo founder or indie hacker, you know that time is your most precious resource. In 2026, the lands

May 14, 20263 min read
Ai Coding Tools

How to Leverage AI Coding Assistants to Boost Your Productivity in 2 Weeks

How to Leverage AI Coding Assistants to Boost Your Productivity in 2 Weeks As a solo founder or indie hacker, you’re always looking for ways to maximize your productivity. The chal

May 14, 20264 min read
Ai Coding Tools

Understanding the Differences: GitHub Copilot vs Cursor for Advanced Coders

Understanding the Differences: GitHub Copilot vs Cursor for Advanced Coders As an advanced coder, you might find yourself at a crossroads when it comes to AI coding tools. With the

May 14, 20263 min read
Ai Coding Tools

How to Build a Simple Web App with AI in 3 Hours

How to Build a Simple Web App with AI in 3 Hours Building a web app can feel daunting, especially if you're just starting out. The good news? With the right AI coding tools, you ca

May 14, 20264 min read