How to Build and Deploy a Real App With Claude Code and Replit (2026)

Published: 05/08/2026 Category: Replace With Claude Read time: 9 minutes Tags: Claude Code, Replit, build and deploy, no-code app, solopreneur tools, AI app builder

🎥 Prefer to watch? The full build is on YouTube — every prompt and every step live on screen. → https://youtu.be/OODgjCaqx6Y

What you'll be able to do after reading this

By the end of this post you will have built a real working app using Claude Code prompts and deployed it live on Replit with a public URL you can share with anyone. No coding experience required. No installations on your computer. The entire build happens in your browser.

What Claude Code and Replit actually are

Claude Code is Anthropic's AI tool that writes, edits, and runs code based on your plain English instructions. You describe what you want to build and Claude Code writes the code, explains what it did, and can fix errors when they come up — all from a prompt.

Replit is a browser-based development environment that lets you build and deploy apps without installing anything on your computer. It handles the hosting, the servers, and the deployment. You get a live public URL for your app with one click.

Together these two tools let a non-developer build and ship a real working app in under an hour. This post shows you exactly how.

What you need before starting

  • A Claude account (claude.ai — free tier works)

  • A Replit account — free plan is enough (referral link below for $10 credits)

  • A browser and an internet connection

  • An idea for something simple you want to build

For your first build, simple is better. A single-page tool that does one specific thing is the right starting point. Good examples: a client intake form, a price calculator, a simple landing page, a text formatter, a checklist generator.

Phase 1: Plan the build before touching any tools

The most common mistake in a first Claude Code build is starting to prompt before you know what you are building. Spend five minutes answering these three questions:

What does this app do in one sentence? Be specific. Not "a calculator" but "a project quote calculator that multiplies hours by hourly rate and adds a 20% margin."

What does a user type in or click? List the inputs. A form field for hours, a field for rate, a button that says Calculate.

What does the user see when it works? Describe the output. A total price displayed in large text below the button, formatted as currency.

Write these answers down. You will paste them into your first Claude Code prompt.

Phase 2: Set up Replit

Go to replit.com and create a free account. On the dashboard click Create Repl. Select HTML, CSS, JS as the template — this is the right starting point for a simple single-page app. Give your Repl a name matching your project and click Create Repl.

You will land on a split screen — file editor on the left, live preview on the right. The right side shows your app updating in real time as changes are made. Keep both sides visible.

Get your $10 Replit credits using the referral link at the bottom of this post.

Phase 3: Build with Claude Code prompts

Open Claude Code at claude.ai in a separate tab. You are going to write prompts here and paste the code outputs into Replit.

Prompt 1 — The initial build

Write a prompt that includes everything from your planning phase. Here is the structure:

Build a single-page web app that does the following:
[DESCRIBE EXACTLY WHAT THE APP DOES]

User inputs:
[LIST EVERY INPUT FIELD AND WHAT IT DOES]

Output:
[DESCRIBE EXACTLY WHAT THE USER SEES WHEN THEY CLICK]

Design requirements:
- Clean, minimal design
- Mobile-friendly
- Single HTML file with CSS and JavaScript included
- Professional color scheme — white background, dark text, one accent color

Do not use any external libraries or frameworks.
Output the complete HTML file ready to paste and run.

Claude Code will output a complete HTML file. Copy the entire output.

Paste into Replit

In your Replit editor, click on the index.html file in the left sidebar. Select all the existing content and delete it. Paste Claude Code's output. The live preview on the right will update immediately and show your working app.

Test it. Does it work? Are there any visual issues? Any errors in the browser console?

Prompt 2 — Refinements

Based on what you see in the preview, write a second prompt to fix anything that is off:

Here is the current code for my app:
[PASTE THE CURRENT HTML]

Make these specific changes:
1. [DESCRIBE CHANGE 1]
2. [DESCRIBE CHANGE 2]
3. [DESCRIBE CHANGE 3]

Keep everything else exactly the same.
Output the complete updated HTML file.

Be specific about what to change. "Make it look better" produces mediocre results. "Change the button color to #2563eb, increase the font size of the result to 32px, and add a thin border around the input fields" produces exactly what you asked for.

Repeat this prompt cycle — test, identify specific issues, prompt Claude Code for the fix — until the app works and looks right.

Phase 4: Deploy live on Replit

When your app is working correctly in the preview, click the Deploy button in Replit (or the Run button depending on your Replit version). Replit will generate a public URL — something like yourprojectname.yourusername.repl.co.

Open that URL in a new tab. Your app is live. Share it with anyone. It works on mobile and desktop.

Common issues and fixes

Claude Code output has errors when pasted into Replit Open the browser console in your Replit preview (right-click → Inspect → Console). Copy the error message and paste it into Claude Code: "This code is producing the following error: [PASTE ERROR]. Fix it and output the complete corrected HTML." Claude Code will identify and fix the issue.

The app looks different in the live URL than in the preview This is usually a CSS issue. Check if any styles are behaving differently at full browser width vs the narrow preview panel. Add a max-width to your main container and center it: max-width: 600px; margin: 0 auto;

Replit preview is blank Check that you pasted the full HTML including the opening <!DOCTYPE html> and closing </html> tags. Claude Code sometimes truncates if the output is very long — if it cut off, ask Claude Code to output only the missing section.

Tools used in this build

  • Claude Code: claude.ai (free tier)

  • Replit (get $10 credits): replit.com/refer/replacewithclau

  • Replace With Claude community: skool.com/replace-with-claude-6927/about

Replit link is a referral link. You get $10 in credits — at no cost to you.

What's next

The next post covers the Claude Code beginner setup guide — a deeper walkthrough of the Claude Code environment itself including how to work with files, how to handle larger projects, and how to use Claude Code for more complex builds. After that we build a full Invoice Generator SaaS from scratch.

Get the free Claude Business Stack

10 copy-paste Claude prompts that replace your most expensive business tasks — delivered instantly when you subscribe.

replacewithclaude.beehiiv.com

replace with claude · @replacewithclaude on YouTube · Stop hiring. Start replacing.

Affiliate disclosure: Some links in this post are affiliate links. I earn a commission if you sign up — at no cost to you.

Keep Reading