0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
query/examples/svelte/basic
github-actions[bot] c08f5766dd
ci: Version Packages (#11511)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-09-16 16:56:55 +02:00
..
src feat!(svelte-query): rewrite Svelte adapter to use runes (#9694) 2025-09-30 22:07:17 +10:00
static docs(svelte-query): Fix SSR example and update svelte templates (#5243) 2023-04-15 13:40:13 +10:00
.gitignore docs(svelte-query): Rework SvelteKit setup (#4811) 2023-01-13 13:48:19 +01:00
package.json ci: Version Packages (#11511) 2026-09-16 16:56:55 +02:00
README.md docs: Updated installation commands with bun package manger (#6971) 2024-02-25 10:15:32 +01:00
svelte.config.js feat!(svelte-query): rewrite Svelte adapter to use runes (#9694) 2025-09-30 22:07:17 +10:00
tsconfig.json docs(svelte-query): Rework SvelteKit setup (#4811) 2023-01-13 13:48:19 +01:00
vite.config.ts chore: Merge select workspace changes from alpha (#5563) 2023-06-12 17:55:04 +10:00

create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn or bun install), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.