https://github.com/tinybirdco/ecommerce-svelte
https://github.com/tinybirdco/ecommerce-svelte
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tinybirdco/ecommerce-svelte
- Owner: tinybirdco
- Created: 2022-08-30T17:39:04.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-31T22:18:14.000Z (over 1 year ago)
- Last Synced: 2025-03-30T23:51:13.413Z (about 1 year ago)
- Language: Svelte
- Homepage: ecommerce-svelte-rho.vercel.app
- Size: 28.1 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ecommerce-svelte demo
This repo contains an ecommerce demo tho show a very basic[^1] example of real time personalization using Tinybird to ingest data, transform it, and publish endpoints.
It is deliberatedly simple to be quickly showable in a demo.
You can visit the deployed apps here:
- [Svelte ecommerce](https://ecommerce-svelte-rho.vercel.app/)
- [Tremor dashboard](https://ecommerce-svelte-tremor-dashboard.vercel.app/)
## Create the Tinybird workspace
If you are planning to use the current workspace, ask internally for the tokens and jump directly to the next step.
Otherwise, `cd data-project` and follow the [README](/data-project/README.md) of that folder.
## The website
`cd demo-ecomm-svelte` and follow the [README](/demo-ecomm-svelte/README.md).
## Enhancements
Check the /todo page to check planned developments.
### Using the Tinybird Web Analytics Starter Kit
Follow the [Starter Kit README](https://github.com/tinybirdco/web-analytics-starter-kit#readme) and add the flock.js scrtipt in `demo-ecomm-svelte/src/routes/+layout.svelte` inside the `` tag:
```html
Home - SvelteKit Commerce
```
And you can check your dashboard right away: [https://analytics.tinybird.co/](https://analytics.tinybird.co/) adding the `dashboard` token from your workspace.
Note: we already included it using the `VITE_WEB_TRACKER` and `VITE_WEB_TRACKER` environment variables.
[^1]: Very basic in the sense of not taking to account the user journey, just the number of visits, sales, and people who added to cart for each product. It definetly can be enhanced.