Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Running the App Locally | First Working App
Web App from Scratch with Claude

bookRunning the App Locally

Swipe to show menu

Before you can see your app, it needs to be started. This chapter covers that one step and what to do if something goes wrong.

What running locally means

When Claude Code runs your project it creates a local server on your computer. This uses your Wi-Fi connection to make the app accessible in your browser at an address like localhost:3000.

Note
Note

This is not live on the internet. If you send that link to someone else they will not be able to open it. It is only for testing on your own machine.

Think of it like a dress rehearsal. The show is not open to the public yet but everything runs as if it were.

The command you need to know

This is the command that starts your app. Claude Code will run it for you. When prompted, click Allow.

npm run dev

If the app does not start first time that is normal. Claude Code will read the error and fix it automatically.

What you should see

When the app loads in your browser for the first time you will see the landing page. You can interact with it and click around. The AI functionality will not work yet because we have not set up the API key. That is what the next chapter covers.

question mark

What does running your app locally mean

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 3

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Section 3. Chapter 3
some-alt