O'Reilly logo

Backbone.js Cookbook by Vadim Mirgorod

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

Prototyping a RESTful backend with MongoLab

Let's say we want to create a Backbone application that will communicate with a RESTful service. Should we start with creating a backend or a frontend? This question sounds like a dilemma, but the answer is very simple.

The easiest way is to create a prototype using a simple database with a REST-style interface, so we can quickly replace it with our own backend in the future.

There is a good tool for that named MongoLab (http://mongolab.com), which is the cloud version of MongoDB with a REST-style interface. MongoDB is a NoSQL document-oriented database that works with JSON-like data. MongoLab will not require us to write even a single line of code on the backend, so it is perfect for us as a prototyping ...

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