Local development setup
This tutorial gets you from a fresh checkout to a green type-check on both the Rust server and the SvelteKit web app.
-
Type-check the server. From
server/:Terminal window cargo checkRun this after every change — it is the fastest correctness signal.
-
Run the web app. From
web/:Terminal window npm installnpm run devThe Vite dev server runs on port 5173 and proxies
/apiand/wsto the server on:8080. -
Type-check the web app. Still in
web/:Terminal window npm run i18n:compile # regenerate Paraglide messages firstnpx svelte-check --threshold error
The pre-commit checklist
Section titled “The pre-commit checklist”Before committing, the project expects:
cargo check— 0 errors.npx svelte-check --threshold error— 0 errors.npm run lint(oxlint) +npm run format:check— 0 errors.- New i18n keys added to both
web/messages/en.jsonandde.json, thennpm run i18n:compile.