A basic example
Copy example project with degit:
$ npx degit bluwy/svelte-router/examples/basic svelte-app
Install dependencies:
$ cd svelte-app
$ npm install
Run development server:
$ npm run dev
Then, navigate to http://localhost:5000. You should see your app running. Edit a component file in src
, save it, and the page will auto reload.
To run in production:
$ npm run build
$ npm run start