tezvyn:

SvelteKit: From Zero to Dev Server

Source: svelte.devbeginner

Spin up a new SvelteKit app with `npx sv create`. This command scaffolds a project, prompting you to add tools like TypeScript. Then, `npm run dev` starts your dev server. The key footgun: forgetting to install dependencies before starting the server.

SvelteKit gets you from zero to a running dev server with one command: `npx sv create`. The interactive setup wizard scaffolds your project, asking if you want to add essentials like TypeScript. Once created, `cd` into the new directory and run `npm run dev` to launch a live-reloading server. Pages are just Svelte components in the `src/routes` directory. The most common mistake is running `npm run dev` before `npm install`, which will fail if you didn't install dependencies during the initial setup.

Read the original → svelte.dev

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

SvelteKit: From Zero to Dev Server · Tezvyn