svelte-d3-demo Svelte Themes

Svelte D3 Demo

Just playing around with svelte and d3

Svelte D3 Demos

This is just a playground site, non of the code is ever intended for release/production. I'm only using it as a place to learn more about Svelte and D3.

Note: Project started via https://github.com/sveltejs/template.

Get started

Install the dependencies...

cd svelte-d3-demo
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

Deploying to the web

With Vercel

Install vercel if you haven't already:

npm install -g vercel

Then, from within your project folder:

cd public
vercel deploy --name my-project

With surge

Install surge if you haven't already:

npm install -g surge

Then, from within your project folder:

npm run build
surge public my-project.surge.sh

Top categories

Loading Svelte Themes