velib Svelte Themes

Velib

Stats Vélib with Svelte, D3, deployed on Surge.

Velib app

This is a Svelte project based on the template https://github.com/sveltejs/template.

Data from my account on Velib website

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd velib
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000.

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

Deploying to the web

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