Vibe code with Replit
Prerequisites
- A DataDoe API key. See How to connect.
- Your DataDoe role allows Personal API keys, or you use a service account key. See Choose a key type.
Create a Replit account
- Go to replit.com (opens in a new tab).
- Select Sign up or Log in.
- Choose one of the available authentication methods.
- Follow the instructions to create an account.
Create a Replit project
- After you create an account, Replit opens its dashboard.
- Type your prompt in the text area to create a new project. You can also open our sample prompt on Replit (opens in a new tab).
- Submit the prompt. The agent starts building the app and shows the results in the preview window.
Note: While building, Replit will prompt you for your DataDoe API key to connect the API. Follow its secure setup flow: store the key in Secrets.
Prompt
Task:
Build a clean, interactive Amazon sales dashboard using the DataDoe API.
The dashboard should analyze the latest 30 days and compare them against the previous 30 days.
Requirements:
- Allow selection of a single seller from a seller list
- Display sales, traffic, ads, and profitability data for the selected seller
- Show current period, previous period, absolute delta, and % delta
- Include KPI cards and simple comparison/trend charts
- Use real API data only
- Inspect the API docs first to identify the correct endpoints and fields
- Strictly follow all agent instructions provided in the API documentation
- Store `DATADOE_API_KEY` in Replit Secrets and read it only from server-side code. Keep the key out of chat, source files, and browser code.
- If exact metrics are unavailable, use the closest available fields and clearly note assumptions
- Handle missing data and API errors gracefully
- Keep the UI simple, clean, and easy to read
- Separate data fetching, transformation, and presentation logic
Testing & Validation:
- Use `curl` to verify API connectivity and inspect response structures before implementing the UI
- Ensure the application builds successfully and the dev server starts without errors
- Fix any linter or TypeScript errors introduced during development
Include at minimum:
- Sales: total sales, units sold, orders, average order value
- Traffic: sessions, page views, conversion rate
- Ads: ad spend, ad sales, ROAS, ACOS/TACOS if available
- Profitability: gross profit, net profit if available, margin %
Deliver:
- A working dashboard
- Clean, maintainable code
- Brief setup instructions
- A short explanation of which API endpoints were used and any assumptions made
Data source:
https://api.datadoe.com/api/v1/docs/jsonResponse

