Ai Coding Tools

How to Code a Simple Web App with AI Tools in Just 2 Hours

By BTW Team4 min read

Comparing tools? See the AI tools tested on the show.

In short

A practical guide showing how to leverage AI coding tools to build a fully functional web app quickly, with step-by-step instructions.

As an indie hacker, the thought of coding a web app can be intimidating, especially if you’re short on time. But what if I told you that with the right AI tools, you could whip up a simple web app in just 2 hours? In 2026, AI coding tools have evolved to the point where they can significantly reduce your development time while still allowing you to build something functional. Here’s how to do it.

Prerequisites: What You Need to Get Started

Before diving in, here’s what you’ll need:

  • Basic knowledge of HTML, CSS, and JavaScript: You don’t need to be an expert, but familiarity helps.
  • An account with a cloud IDE: Tools like Replit or Glitch are great for this.
  • Access to AI coding tools: We’ll discuss specific tools you can use.
  • A clear idea for your web app: Keep it simple—think a to-do list or a basic blog.

Step 1: Choose Your AI Coding Tools

Here’s a list of AI coding tools you can leverage to speed up your development process:

| Tool Name | What It Does | Pricing | Best For | Limitations | Our Take | |-------------------|--------------------------------------------------|-----------------------|-------------------------------------------|-------------------------------------|--------------------------------| | GitHub Copilot | AI assistant for code completion and suggestions | $10/mo | Writing code snippets quickly | Limited to supported languages | We use this for quick fixes. | | Replit | Collaborative online IDE with built-in AI support | Free tier + $20/mo pro| Building and hosting small web apps | Free tier has limited features | Great for rapid prototyping. | | ChatGPT | Conversational AI for coding questions | Free + $20/mo Plus | Explaining concepts and debugging | May not provide accurate code | We use it for brainstorming. | | Codeium | AI code completion tool | Free | Fast code suggestions | Limited language support | We don’t use this much. | | Tabnine | AI-based code completion | Free tier + $12/mo pro| Personalized code suggestions | Can be hit or miss with context | We use it for JavaScript. | | Glitch | Online platform for building and sharing apps | Free tier + $10/mo pro| Hosting and collaborating on web apps | Limited free tier resources | Ideal for quick launches. | | Pipedream | Integrate APIs easily with no-code features | Free tier + $25/mo pro| Connecting different services | Can get complex for beginners | We use it for API integrations. | | Vercel | Frontend hosting with built-in CI/CD | Free tier + $20/mo pro| Deploying front-end applications | Free tier limits on bandwidth | We host all our front-ends here.| | Firebase | Backend-as-a-service for real-time data | Free tier + $25/mo pro| Building real-time applications | Costs can add up with usage | We use it for user auth. | | Airtable | Database tool with a spreadsheet interface | Free tier + $12/mo pro| Simple database management | Limited to 1,200 records in free tier| We use it for project tracking. |

What We Actually Use

In our experience, we rely heavily on GitHub Copilot for coding, Replit for hosting, and Firebase for backend services. This combination has proven to be effective for rapid development.

Step 2: Plan Your Web App

Keep your app idea simple. For instance, a to-do list app can be built with basic features: adding tasks, marking them as complete, and deleting tasks. Here's a quick outline of features:

  • Add Task
  • View Tasks
  • Delete Task

Step 3: Set Up Your Development Environment

  1. Create a Replit Project:

    • Go to Replit and start a new project.
    • Choose a template (HTML/CSS/JS is a good start).
  2. Integrate GitHub Copilot:

    • Enable GitHub Copilot in your IDE settings to start getting code suggestions.

Step 4: Code Your Web App

Here’s a simple outline of code you might write:

<!DOCTYPE html>
<html>
<head>
    <title>Simple To-Do App</title>
</head>
<body>
    <h1>My To-Do List</h1>
    <input id="taskInput" type="text" placeholder="Add a task">
    <button onclick="addTask()">Add</button>
    <ul id="taskList"></ul>
    <script>
        function addTask() {
            const taskInput = document.getElementById('taskInput');
            const taskList = document.getElementById('taskList');
            const li = document.createElement('li');
            li.textContent = taskInput.value;
            taskList.appendChild(li);
            taskInput.value = '';
        }
    </script>
</body>
</html>

Troubleshooting

  • Error: Task not adding: Check your JavaScript console for errors. Make sure your function is correctly defined and called.
  • Styling issues: Use simple CSS to style your app. If it looks off, make sure your CSS is linked correctly in the HTML.

What's Next?

Once your basic app is up and running, consider adding features like:

  • User authentication: Use Firebase for user management.
  • Data persistence: Store tasks in a database like Airtable.
  • Styling: Use CSS frameworks like Tailwind CSS for better design.

Conclusion: Start Here

If you're looking to build a simple web app quickly, start with Replit, GitHub Copilot, and Firebase. These tools will help you get a functional product up and running in just 2 hours. Remember to keep your project scope manageable and iterate based on user feedback.

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