yewstack / yew

Rust / Wasm framework for creating reliable and efficient web applications
https://yew.rs
Apache License 2.0
30.52k stars 1.42k forks source link

There is no Pogressive Web App example project #852

Open jstarry opened 4 years ago

jstarry commented 4 years ago

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

jonathanMelly commented 4 years ago

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

jstarry commented 4 years ago

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

fkohlgrueber commented 4 years ago

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?

jstarry commented 4 years ago

@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