Docker + SvelteKit + Clickhouse
Test project
Run docker container with local Clickhouse and SvelteKit
docker-compose -f docker-compose.yml up -d
When Clickhouse starts up (1-5 minutes), you can open the playground localhost:8123/play or open localhost:3000/ in your browser.
Tasks:
1.
2.
-
✅ Populate it with some random test data -
✅ Todo: write an SQL query calculating the final price of a customer's cart, keeping in mind that:
-
cart_products may contain both no_discount and discounted products
-
total_cart_price = discount_total + no_discount_total + tax (10%)
As a bonus, a very simple Svelte home page has been added, illustrating the CH call via the HTTP API. @depyronick/clickhouse-client