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

Building a RESTful frontend with Backbone

In this recipe, we are going to write a frontend application that will act as a client for a RESTful service. For the backend, we will use the MongoLab service, which is a cloud version of MongoDB with a REST interface.

We will use the LayoutManager extension to output our views in a neat format. To build our application, we will take an example app from Chapter 6, Templates and UX sugar, and will modify it, so it will support data sync via REST and will look like the following screenshot:

Building a RESTful frontend with Backbone

In the left-hand side pane, we can see a list of invoice titles, and in the right-hand side pane, we can see the invoice ...

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