codihuston / gairos

A time-keeper and scheduler for tasks
9 stars 2 forks source link

Implement front-end as PWA #22

Open codihuston opened 4 years ago

codihuston commented 4 years ago

I want the app to be usable offline. Here are some pretty decent reads / resources om how to do so with this stack:

https://rubygarage.org/blog/pwa-with-react-apollo https://codelabs.developers.google.com/dev-pwa-training/

My concern lies in how much overhead / additional work it will take to implement the graphql queries and data fetching on the client side in a PWA. And how to handle errors when submitting data when coming back online? i.e.) create a task offline, record a few task instances, come back online... task creation fails, then persisting a task instance im the db fails as a result...? How to fix without losing this data? In each of their respective UIs, have a button that says something along the lines of retry saving to the database?

codihuston commented 4 years ago

Using Create-React-App: https://create-react-app.dev/docs/making-a-progressive-web-app/