Build a Sales Dashboard with Claude Code in 1 Hour

Build a Sales Dashboard with Claude Code in 1 Hour

📊 Build a Sales Dashboard with Claude Code in 1 Hour

Want to know how much you sold today? How many new orders came in? Which customers bought the most? A sales dashboard will answer all these questions in just 1 hour, simply by telling Claude Code how you want it to look.

You don't need to code, learn HTML, or write JavaScript. Claude Code will build a web app that runs right in your browser and updates numbers instantly as you enter data.

🧰 Prerequisites

  1. Claude Code (free or paid). Open it at claude.com/claude-code
  2. Your sales data: an Excel file, CSV, or even notes with product names, quantities, prices, and purchase dates
  3. 5 minutes to describe what your dashboard should look like (which metrics, what charts, what colors)

🪜 Step-by-Step Instructions

Step 1: Prepare Your Data

Gather your sales data into a simple list. Example:

Product,Quantity,Price,Date
White T-shirt,15,120000,2026-11-14
Black Pants,8,250000,2026-11-14
Sneakers,5,450000,2026-11-13
White T-shirt,12,120000,2026-11-13
Hat,22,85000,2026-11-12

Or write it in Notes:

  • White T-shirt: sold 15 units at 120k each, today
  • Black Pants: sold 8 units at 250k each, today

Claude Code will understand.

Step 2: Open Claude Code

Go to claude.com/claude-code, click "New Chat" or "Start Coding".

Step 3: Describe Your Dashboard

Paste this prompt below, replacing [your data] with your product list:

Create a sales dashboard web app that runs directly in the browser.

Sales data:
[your data]

The dashboard should display:
1. Total revenue today (large number at the top)
2. Number of orders today
3. Top 3 best-selling products
4. Column chart: today's revenue vs yesterday
5. Table: product name, quantity sold, total revenue

Use beautiful colors: blue for revenue, orange for orders, gray background.

Make sure users can enter new data directly on the dashboard (add rows, edit prices, delete products).

Step 4: Customize It

Claude Code will write the code and show the dashboard in the right panel. If you want to:

  • Add another chart: say "Add a pie chart showing sales percentage by product"
  • Change colors: "Change background to light green, make text darker"
  • Add filters: "Add a date range filter to view revenue from any date to any date"

Claude Code will update it immediately, no commands needed.

Step 5: Save Your Dashboard

Click "Run" at the top (or "Deploy" if you want to) to launch the dashboard. You'll get a public URL to share with your team or view on your phone.

To save the code, click "Export" to download the HTML or React file.

✅ Sample Result

After 1 hour, you'll have:

  • Big number at top: "Today's Revenue: 8,720,000 VND"
  • Data rows: White T-shirt 15 units, Black Pants 8 units, Sneakers 5 units…
  • Column chart: comparing revenue across days
  • "Add" / "Edit" buttons: change numbers without opening Excel

This dashboard runs completely in your browser. No server. No extra subscriptions needed.

💡 Tips for Better Results

  1. More detail = better output: add categories (cosmetics, clothing, accessories), regions (Ho Chi Minh City, Hanoi), or customer types (VIP vs regular)
  2. Be specific: don't say "make a dashboard", say "show top 5 best-selling products, compare revenue week by week, add an export-to-Excel button"
  3. Test before committing: ask Claude Code to build a simple version first, then add features one at a time
  4. Use real data: hardcoded sample data often breaks with real numbers. Use your actual data from step 1

⚠️ Limitations to Know

  1. Data only stays in your browser: close the browser and it's gone. To keep data forever, add a database (Google Sheets, MongoDB) or download a CSV
  2. Performance with large data: if you have more than 10,000 sales rows, the dashboard may slow down. Filter to just the last 30 days
  3. No built-in security: anyone with the link can see it. If your data is sensitive, add a password or keep the file locally
  4. Manual updates: if you want the dashboard to auto-update from your Excel spreadsheet every hour, you need an API (more complex, may need a developer)

FAQ

Can I create this dashboard with free Claude Code? Yes. Claude Code is free for all Claude users on claude.com. You just need a Claude account (free or Claude Pro).

Is this safe for my business? If your data isn't confidential (general sales numbers), yes. But if it contains detailed financial info or customer data, consider encrypting it or storing it in a secure system.

Can I add advanced features like auto-generated reports, email notifications, or warehouse integration? Yes, but it takes extra steps. Claude Code can help you build an API backend (with Node.js, Python) to connect other services. Ask: "Create an API to sync revenue from Shopee and TikTok Shop every hour".

How do I know Claude Code got it right? Run the dashboard inside Claude Code first. If there are no errors (no red code), you can hit "Run" to test it on your machine. If there are errors, Claude will fix them.

After I build it, do I have to open Claude Code every time? No. Click "Deploy" in Claude Code to save a public URL. You'll have a link to open the dashboard without going back to Claude Code.


Want to build a complete sales system? Learn more:

#dashboard #sales #claudecode #webdev #automation #vibecoding #salestool

More articles