You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cross-Poll Svelte w/ Svelte Router Front End Environment Set-Up
To make a Svelte playground with a template, use this repo and follow the instructions in it's readme. If you want to use Svelte Router with the template, make sure to do the other steps below
Clone down the repo or navigate into the template you've made with the steps above
From the root directory of the project, run npm install and then run npm install --save svelte-routing
Make sure the scripts property of your package.json file looks like this (there is a bug with svelte-router that requires this):
"scripts": {"build": "rollup -c","dev": "rollup -c -w","start": "sirv public --single","start:dev": "sirv public --dev --single"}
Run npm run dev to boot up the local server
You should see:
Your application is ready~! π
- Local: http://localhost:5000
ββββββββββββββββββ LOGS ββββββββββββββββββ
Navigate to http://localhost:5000/ in your browser, you should see HELLO WORLD in big orange text with a link to the Svelte tutorial below it