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
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
Yes, Backbone already has a router object. Then what ...