Ai Coding Tools

How to Use AI Tools to Code Your First Simple App 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 AI coding tools to create a basic application in just two hours, ideal for first-time developers.

If you're like most indie hackers or side project builders, the idea of coding your first app can feel daunting. The good news? With AI coding tools, you can build a simple app in just about 2 hours. Yes, you read that right! But which tools should you use, and how do you get started? Let’s dive into what actually works based on our experience.

Prerequisites for Building Your App

Before you start, make sure you have the following:

  1. Basic understanding of programming concepts: Familiarity with variables, loops, and functions helps.
  2. A computer with internet access: You'll be using online tools.
  3. A code editor: You can use Visual Studio Code (free) or any text editor of your choice.
  4. An AI coding tool: We’ll cover several options below.

Step-by-Step Guide to Building a Simple App

Step 1: Choose Your AI Coding Tool

Here are some AI coding tools that can help you build your app quickly:

| Tool Name | What It Does | Pricing | Best For | Limitations | Our Take | |------------------|-------------------------------------------------------|------------------------------|--------------------------------|--------------------------------------------|------------------------------| | GitHub Copilot | AI-powered code completion and suggestions | $10/mo | Beginners needing guidance | Limited to GitHub ecosystem | We use this for quick fixes. | | Replit | Online IDE with built-in AI assistance | Free tier + $20/mo pro | Collaborative coding | Free tier has limited features | Great for quick prototypes. | | Tabnine | AI code completion for multiple languages | Free tier + $12/mo pro | Developers needing multiple language support | Might miss context without comments | We use it for various projects. | | Codeium | AI code assistant that integrates with IDEs | Free | Beginners and experienced devs | Limited to specific languages | A solid free option. | | Ponicode | Focuses on generating tests and documentation | Free tier + $15/mo pro | Testing-focused developers | Not a full code generator | We don’t use it often. | | Sorcery | AI that explains code and suggests improvements | Free | Learning and understanding code| Requires manual context input | Useful for learning. |

Step 2: Set Up Your Environment

  1. Create an account on your chosen AI tool.
  2. Open your code editor and create a new project folder.
  3. Initialize your project (for example, if you’re using JavaScript, create an index.js file).

Step 3: Start Coding with AI Help

  1. Define your app's purpose: For this example, let’s create a simple to-do list app.
  2. Use the AI tool to generate the basic structure:
    • For GitHub Copilot, start typing function addTask(task) { and see suggestions.
    • For Replit, use their AI suggestions as you write your code.

Step 4: Testing Your App

  1. Run your app in the code editor or terminal.
  2. Use the AI tool to help debug issues. Copy any errors and ask for suggestions on how to fix them.

Step 5: Final Touches

  1. Add some styling: Use CSS or a library like Bootstrap.
  2. Test your app again to ensure everything works as expected.

Troubleshooting Common Issues

  • Issue: The app doesn’t run.

    • Solution: Check for syntax errors. Use your AI tool to suggest corrections.
  • Issue: The AI tool isn't suggesting anything helpful.

    • Solution: Provide more context in your comments. For example, // I want to create a button to add tasks.

What's Next?

Once you’ve built your simple app, consider the following steps:

  1. Deploy your app using platforms like Vercel or Netlify (both have free tiers).
  2. Gather user feedback to improve your app.
  3. Explore more complex features by integrating APIs or databases.

Conclusion

Building your first app doesn’t have to be overwhelming. With the right AI tools, you can accomplish this in about 2 hours. Start with a simple project, leverage AI for coding assistance, and don’t hesitate to iterate based on user feedback.

What We Actually Use

In our experience, we primarily rely on GitHub Copilot for its seamless integration with our workflow and Tabnine for multi-language support.

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