-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Offline First Web Development
By :
There is really only one requirement of a good online database: synchronization. If a database solves the problem of making multiple databases eventually consistent, it's probably an option worth considering. There are many choices available: derby.js, Lawnchair, Firebase, remotestorage.io, Sencha Touch, Hoodie, PouchDB, and others.
Some of these are pure databases; others provide end-to-end offline-first development frameworks. For simplicity, we will focus on four: Sencha Touch, PouchDB, remotestorage.io, and Hoodie.
We've chosen Sencha Touch to build our offline app. As we saw in Chapter 2, Building a To-do App, Sencha Touch provides support for multiple types of backing stores and makes it trivial to swap between them. Some of these backing stores, such as LocalStorage, are offline-based. In a way, Sencha Touch is less about storing data offline and more about providing an easy interface layer between the frontend and data.
Why isn't LocalStorage...
Change the font size
Change margin width
Change background colour