A soup-to-nuts interactive tutorial on how to build apps with Svelte.
This repo uses pnpm.
First, run node scripts/create-common-bundle. This packages up everything that's needed to run a SvelteKit app (Vite, Esbuild, SvelteKit, Svelte compiler etc) which can subsequently be unpacked on a server to create and run and instance of a SvelteKit application (which powers the output window of the tutorial).
The next steps depend on whether you want to run this locally in filesystem mode, or in WebContainer mode. For now, it works with filesystem mode only locally. In future, it will run both locally and on the web (using WebContainers).
- add an
.envfile withPUBLIC_USE_FILESYSTEM=truein it - Run the app locally with
pnpm devorpnpm build && pnpm preview.
- if an
.envfile exists, modify it so there'sPUBLIC_USE_FILESYSTEM=in it - Run the app locally with
pnpm devorpnpm build && pnpm preview.