O'Reilly logo

Getting Started with Backbone Marionette by Arturo Soto, Raymundo Armendariz

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

The Backbone.Marionette.Application object

Create a new file inside the js folder and name it BookStore.js. To create a new application, we just need to type the following line in Bookstore.js:

var bookStoreApp = new Backbone.Marionette.Application();

We will name the application BookStoreApp and will start attaching our Backbone pieces to this application. But, we already mentioned that Marionette brings the concept of an application object and, from the documentation, we also know that it is an object that will help us to coordinate the pieces of our application. You may ask, what pieces; for example, a Marionette.Router object and a Marionette.Controller object.

Backbone already has a router!

Yes, Backbone already has a router object. Then what ...

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