Free Sample
+ Collection

Getting Started with Backbone Marionette

Raymundo Armendariz, Arturo Soto

If you know JavaScript and a little Backbone.js, this book is just what you need to move your speed and efficiency up a gear. It’s a complete and practical guide to the composite application library Backbone Marionette.
RRP $17.99
RRP $29.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783284252
Paperback94 pages

About This Book

  • Create scalable and highly interactive web applications using one of the best frameworks for Backbone.js
  • Learn about controllers, views, modules, events, commands, and regions
  • Make the most out of Backbone Marionette by understanding its philosophy and applying it to real-life development tasks

Who This Book Is For

If you are a web application developer interested in using Backbone Marionette for a real-life project, then this book is for you. As a prerequisite, knowledge of JavaScript and a working knowledge of Backbone.js is required.

Table of Contents

Chapter 1: Starting with Backbone Marionette
Introducing Marionette.js
Installing Marionette.js
Chapter 2: Our First Application
Introduction to what we are building
Setting up our development environment
The Backbone.Marionette.Application object
Chapter 3: Marionette View Types and Their Use
Marionette.View and Marionette.ItemView
Building the layout of our application with Marionette.Layout
Extending Marionette views
Chapter 4: Managing Views
Understanding the Marionette.Region object
Using the Marionette.RegionManager object
Using the Backbone.BabySitter object
Taking advantage of the Marionette.Renderer object
Improving the performance of the application with TemplateCache
Chapter 5: Divide and Conquer – Modularizing Everything
Applying the divide and conquer principle
Modularizing single-page applications
Getting started with modules
Splitting modules into multiple files
Implementing initializers and finalizers
Working with subapplications
Using the route filter
Memory considerations
Chapter 6: Messaging
Understanding the event aggregator
Using the event aggregator of Marionette.js
Getting started with Commands
Setting up the RequestResponse object
Chapter 7: Changing and Growing
Using AMD
Defining our application module

What You Will Learn

  • Install and understand the core concepts of Backbone Marionette
  • Orchestrate views with a controller object
  • Divide your application into logical independent regions
  • Manage an object's life cycle to avoid memory leaks
  • Reduce boilerplate and glue code normally needed in Backbone Development by decoupling your JavaScript applications into modules.
  • Provide structure, organization, and pattern to your Backbone code

In Detail

Backbone Marionette is a composite application library for Backbone.js that aims to simplify the construction of large-scale JavaScript applications. It is a collection of common design and implementation patterns found in the applications that we build with Backbone, and it includes pieces inspired by composite application architectures, event-driven architectures, and messaging architectures.

This guide will help you learn some key concepts that will allow you to build large-scale applications with ease. You will learn how to add new features quickly and easily using a solid and composite Backbone Marionette framework. This book is a practical guide to developing scalable applications using an incremental and modular approach with Marionette.js.

This book begins by showing you the key benefits of Marionette.js and how to set up a development environment so you can begin writing code using this framework. It then walks you through the main components of the library such as the router, controller, and application. After that, it introduces you to topics like view types and the view life cycle before moving on to more advanced topics such as modularization, enterprise messaging patterns, incremental use, and memory management.

Getting Started with Backbone Marionette contains a lot of infrastructural examples that will help you to build an application of virtually any module size. It provides you with a collection of common design and implementation patterns to break your applications into small pieces. It then wraps-up by implementing extended capabilities like asynchronous module definitions and handlebars.


Read More

Recommended for You