This repo is a demo application showing you how to build an eCommerce analytics dashboard using Tinybird and Tremor.
You can find the live stream for this demo here.
- Create a Tinybird account
- Copy your Auth Token from your empty Tinybird Workspace
- Clone this repo
- Inside the repo folder, go to the
tinybird
folder and create a new virtual python environmentpython3.11 -m venv .venv
- Activate the Python virtual environment
source .venv/bin/activate
- Install the Tinybird CLI
pip install tinybird-cli
- Authenticate the Tinybird CLI
tb auth
and paste your Auth Token when asked - Push the Tinybird resources to Tinybird
tb push
- Go back to the main repo folder, then enter the
dashboard
folder - Create a
.env.local
file, and use the following template:
NEXT_PUBLIC_TINYBIRD_TOKEN=<my token>
- Replace the
<my_token>
string with the Auth Token you copied earlier, save the file - Install the npm dependencies
npm install
- Run the development server
npm run dev
- You should now have a functional dashboard, but you won't have any data
- To generate fake data, use Mockingbird
- Select the Tinybird Destination
- Enter your Auth Token into the Auth Token box
- Set the Data Source name to
sales_events
- Click Continue
- Copy the contents of the
sales_event.json
files, and paste it into the Schema box in Mockingbird - Click Start Generating
- You should now get mock data arriving in Tinybird, and your dashboard should start to populate