Chapter     6

Introducing MongoDB

Data storage. Most apps need it, and My Mobile Organizer is no exception. We’re talking beyond the localStorage you saw in previous chapters. That covered the client-side offline data cache, but we need something more persistent on the server side as the authoritative data store.

There’s no shortage of options, all of which are available in the world of Node.js. You could go with plain old text files and simply read and write them directly on the local file system. There are relational database connectors available so that you could go with something like MySQL or Oracle.

Those options, however, have (at least) one downside in common: rigidity. With text files, you’ll need to adhere to some specific format and ...

Get Pro iOS and Android Apps for Business: with jQuery Mobile, node.js, and MongoDB 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.