O'Reilly logo

Pro iOS and Android Apps for Business: with jQuery Mobile, node.js, and MongoDB by Frank Zammetti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required