hamvocke / doppelkopf

A "Doppelkopf" card game - in your browser ♣️♠️♥️♦️
https://doppelkopf.party
MIT License
59 stars 10 forks source link

Offline Mode #1

Closed hamvocke closed 6 years ago

hamvocke commented 6 years ago

Doppelkopf should work even when offline.

Using Service Workers should allow to cache content and redirect network requests to hit local caches. All communication to servers should be optional (telemetry, feature toggles) and use fallbacks for offline mode (either queue requests, rely on local storage or use default values).

An upgrade to vue-cli > 3.0 could simplify this by using the PWA plugin it provides. A first attempt at upgrading has failed due to incompatibilities with jest/vue-cli/storybook. In a couple of weeks I'll retry the upgrade and see if the PWA plugin helps resolve this issue.

hamvocke commented 6 years ago

Upgrade to vue-cli 3 done, service workers work fine and offline mode is working at a rudimentary level. Easy peasy :+1: