The PWA ticket JavaScript architecture

Similar to the Podstr application, the PWA ticket app utilizes a combination of third-party libraries and application-specific JavaScript.

The following screenshot shows how the JavaScript files are organized in the source code:

The custom service worker logic or workflow utilizes different libraries to render content on the client. The two third-party libraries are localForage for IndexedDB interactions and Mustache to render markup.

localForage (https://localforage.github.io/localForage/) is another IndexedDB wrapper. It provides a simple interface that mimics localStorage. The main difference is that  ...

Get Progressive Web Application Development by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.