svelte-hackernews

Svelte Hackernews

Mobile PWA project to demonstrate a real use case of Svelte : HackerNews reader

Hacker News Reader Svelte App

This is a mobile PWA project to demonstrate a real use case of Svelte.

Requirements : Node.js.

Install dependencies :

npm install

Local test :

npm run dev

Navigate to localhost:5000.

Build

npm run build

Folder 'public' contains all needed files.

Deploy to surge

Install surge if you haven't already:

npm install -g surge

Then, from within your project folder:

npm run build
surge public

Add to your mobile page

On your mobile, consult the page on surge with https.

On Firefox : click on the house icon to add the app to the home screen.

On Chrome : in the menu, select "Add to homescreen".

Thanks

Top categories

Loading Svelte Themes