diff --git a/examples/hn.svelte.dev/README.md b/examples/hn.svelte.dev/README.md index 46cce05b264c..6538918ad80a 100644 --- a/examples/hn.svelte.dev/README.md +++ b/examples/hn.svelte.dev/README.md @@ -4,12 +4,22 @@ Hacker News clone built with [Svelte](https://svelte.dev) and [SvelteKit](https: ## Running locally +This example uses a locally built version of SvelteKit, so you'll first need to build the SvelteKit library by running the following from the SvelteKit root directory: + +```bash +pnpm install +pnpm build +``` + +You can then build an run this example, which will be accessible at [localhost:3000](http://localhost:3000): + ```bash +cd examples/hn.svelte.dev pnpm install pnpm dev ``` -...then open [localhost:3000](http://localhost:3000). To build and start in prod mode: +To build and start in prod mode: ```bash pnpm build