SvelteKit Data Fetching Example
VIDEO: https://youtu.be/j9Wf_nyKin4
To replicate this project locally you will need a free turso account for the database
Getting Started
- Clone the repo
- Install the deps with
bun install
- Fill in your .env with you turso creds (https://docs.turso.tech/quickstart), filling in:
DATABASE_AUTH_TOKEN="..."
DATABASE_URL="libsql://..."
- Push your schema
bunx drizzle-kit push
- Fill in some fake data from the turso console if you want to
- Start the dev server
bun run dev
Diagrams from Video
Ways to fetch data:
Data and rendering trees: