What this book covers
Chapter 1, Architecture of a Backbone application, deals with the project organization at two levels: logical and physical. On the logical side, you will learn how to connect the Backbone objects, while on the physical side, you will see where to put your scripts.
Chapter 2, Managing views, helps you extract the common patterns of views and create a new set of general purpose views that can be used on any Backbone application. These views will remove a lot of boilerplate code when managing views.
Chapter 3, Model bindings, explains how to deal with complex REST resources and helps you handle embedded resources and keep it in sync with views.
Chapter 4, Modular code, covers dependency management and script bundling with Browserify. Modern applications are becoming more JavaScript-intensive, so it's a good idea to handle dependencies in a smarter way.
Chapter 5, Dealing with files, it covers the common requirement for web applications to upload files to a server, this chapter tells you how to do it in Backbone with a REST server.
Chapter 6, Store data in the browser, shows you how to store data in the browser and how to do it from a Backbone perspective. The chapter shows how to build two drivers to transparently store Backbone models in localStorage and indexedDB instead of a remote server. This can be useful if you want to create offline applications.
Chapter 7, Build like a pro, tells you how you can automatize common and repetitive tasks in a script. It will dramatically improve your productivity. It describes how you can build a development workflow that automatically refreshes your project every time you make a small change.
Chapter 8, Testing Backbone applications, shows you the strategies and best practices when testing frontend code.
Chapter 9, Deploy to production, shows you how to deploy the project to a production server. While high-demand applications need a sophisticated platform, this chapter gives you the starting point for small apps.
Chapter 10, Security, teaches you how to authenticate against the REST servers and how to manage sessions from the Backbone side.