Ai Coding Tools

How to Build a Simple App Using Claude Code in 2 Hours

By BTW Team4 min read

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

In short

Step-by-step tutorial on leveraging Claude Code to quickly develop a basic application, designed specifically for those new to coding.

If you’ve ever felt overwhelmed by the idea of building an app from scratch, you’re not alone. Many indie hackers and solo founders struggle with the technical side of things. Enter Claude Code, a tool that simplifies the coding process using AI, making it accessible even for beginners. In this guide, I’ll show you how to build a simple app using Claude Code in just 2 hours, and trust me, it’s easier than you think.

Prerequisites

Before diving in, make sure you have the following:

  • A Claude Code account (Free tier available)
  • Basic understanding of app functionality (what you want your app to do)
  • A computer with an internet connection
  • A text editor (like VS Code) for code editing

Step-by-Step Guide to Building Your App

Step 1: Define Your App's Purpose

Take about 15 minutes to jot down what your app will do. This can be anything from a simple to-do list to a weather app. For this tutorial, let’s create a basic to-do list app.

Step 2: Set Up Claude Code

  1. Log into your Claude Code account.
  2. Create a new project and name it "To-Do List App."
  3. Choose a template if available, or start from scratch.

Step 3: Use Claude Code to Generate the Basic Structure

Claude Code allows you to generate code snippets based on prompts. Here’s how to get started:

  1. In the Claude Code interface, type: “Generate a basic HTML structure for a to-do list app.”
  2. This will provide you with the HTML boilerplate. Make sure to include a form for adding tasks and a list to display them.
  3. Copy the generated code into your text editor.

Step 4: Add Functionality with JavaScript

Next, you’ll want to add functionality. Here’s a simple way to do it:

  1. In Claude Code, type: “Generate JavaScript code to add and remove items from a list.”
  2. Implement the generated JavaScript into your app's <script> tag.
  3. Make sure it connects to your HTML elements correctly (e.g., the form and the list).

Step 5: Style Your App with CSS

To make your app visually appealing, add some CSS:

  1. In Claude Code, type: “Generate CSS styles for a simple to-do list app.”
  2. Adjust the styles as needed and link the CSS file in your HTML.

Step 6: Test Your App

  1. Open the HTML file in your browser.
  2. Test adding and removing tasks to ensure everything works as intended.

Step 7: Deploy Your App

You can deploy your app using platforms like Netlify or Vercel, which are free for small projects.

  1. Create an account on your chosen platform.
  2. Follow their instructions to deploy your app. This usually involves connecting your GitHub repo or uploading files directly.

Troubleshooting Common Issues

  • App Doesn’t Load: Check your console for JavaScript errors. Claude Code-generated code can sometimes have typos.
  • Styling Issues: If styles aren’t applied, make sure your CSS file is linked correctly in the HTML.
  • Functionality Problems: If tasks aren’t being added or removed, double-check your JavaScript logic.

What’s Next?

Once you’ve built your basic app, consider enhancing it by adding features like user authentication or a database. Tools like Firebase can help you manage data without complex server setups.

Conclusion: Start Here

Building an app doesn’t have to be daunting. With Claude Code, you can leverage AI to simplify the coding process. Start by defining your app's purpose, follow the steps outlined, and in just 2 hours, you’ll have your first app up and running.

What We Actually Use

For our own projects, we use Claude Code for quick prototypes and simple apps. We also supplement it with tools like Vercel for deployment and Firebase for backend support.

If you’re looking for a straightforward way to build apps, Claude Code is a solid choice, especially for beginners.

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