yew icon indicating copy to clipboard operation
yew copied to clipboard

There is no Pogressive Web App example project

Open jstarry opened this issue 5 years ago • 4 comments

We should have an example project, probably in the form of a starter template that shows how to build a PWA (https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps).

In doing so, we should determine if Yew needs any new features to support PWA's

jstarry avatar Jan 08 '20 03:01 jstarry

I saw that woz (rust pwa generator) , has an issue to create an example of pwa genaration with yew...

jonathanMelly avatar Feb 04 '20 07:02 jonathanMelly

Ah yeah, somehow slipped my mind to link to that here. Thanks @diurnambule!

jstarry avatar Feb 04 '20 07:02 jstarry

I've built a minimal PWA using Yew based on https://github.com/yewstack/yew-wasm-pack-minimal:

https://github.com/fkohlgrueber/yew-pwa-minimal

As far as I can see, integrating this into yew/examples is non-trivial because all examples share the same index.html and output folder. A PWA needs changes in index.html as well as a few additional files. I'm not sure how this would be integrated best, do you have any advice?

fkohlgrueber avatar May 15 '20 13:05 fkohlgrueber

@fkohlgrueber awesome! 👏

I'm not sure how this would be integrated best, do you have any advice?

How about using the repo as a starter template? We could link to it in the docs, we could move it to the yew org, etc. All up to you :) Docs repo here: https://github.com/yewstack/docs

jstarry avatar May 16 '20 09:05 jstarry