Svelte Progressive Web App

This is a project template for Svelte apps.

Get started

You need to have Node.js installed.

git clone https://github.com/MarkKhramko/svelte-pwa

cd svelte-pwa
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.

Deploying to the web

Option 1 - using now

Install now:

npm install -g now

Then, from within your project folder:

now

As an alternative, use the Now desktop client and simply drag the unzipped project folder to the taskbar icon.

Option 2 - using surge

Install surge if you haven't already:

npm install -g surge

Then, from within your project folder:

npm run build
surge public

Top categories

Loading Svelte Themes