Apress Access

Beginning Backbone.js

By James Sugrue

  • eBook Price: $31.99
Buy eBook Buy Print Book
Beginning Backbone.js is your step-by-step guide to mastering Backbone.js, taking you from downloading Backbone.js to architecting rich, stable, and robust JavaScript applications.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-6334-0
  • 304 Pages
  • User Level: Beginner to Advanced
  • Publication Date: December 23, 2013
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Pro Node.js for Developers
  • JavaScript Creativity
  • Pro jQuery 2.0
  • Expert JavaScript
  • Building APIs with Node.js
  • Pro MEAN Stack Development
  • Pro Marketing and Search Engine Optimization
  • Practical D3.js
  • Java XML and JSON
Full Description

Beginning Backbone.js is your step-by-step guide to learning and using the Backbone.js library in your web projects. Backbone.js is one of the most popular JavaScript libraries among web developers, used to create modular, single-page web apps. This book takes you from downloading Backbone.js and its dependencies all the way to using more advanced libraries to structure your application architecture, and everything in between.

With a real-world, practical approach, you will learn how you can integrate Backbone.js into the center of your JavaScript stack, and create scalable applications. James Sugrue shows you how to implement all aspects of templating, work efficiently with RequireJS, and fully understand Grunt and all its plug-ins. Armed with this knowledge you'll be able to architect a continuous integration system that is key to real-world applications.

With the explosion of JavaScript-based applications on the web, the need for more structured approaches to code management is more important than ever. Backbone.js helps create applications that separate models from views, enabling developers to avoid spaghetti code. Beginning Backbone.js will gently guide you into this amazingly powerful library, and help you ramp up to building professional applications. Integrate Backbone.js into your work today with this indispensable book.

What you’ll learn

  • Learn the importance of MVC approaches in software development
  • Learn why Backbone.js is so popular and how to integrate it into your JavaScript stack
  • Understand core Backbone.js concepts such as models, views, routers, and events
  • Test your application using the latest JavaScript testing tools
  • Create build scripts using Grunt.js to simplify your build and deployment workflow
  • Use additional libraries to build on the power of Backbone.js
  • Avoid common beginner errors and code using best practices

Who this book is for

Beginning Backbone.js is for the web developer who is already confident with JavaScript, but who is keen to build larger, single-page web apps. If you want to introduce more structure, quality, and process to your web application using Backbone.js, and other leading JavaScript technologies, this is the book for you.

Table of Contents

Table of Contents

  1. Chapter 1: An Introduction To Backbone.js
  2. Chapter 2: Getting Object-Oriented
  3. Chapter 3: Backbone.js Model, View, and Collections
  4. Chapter 4: Templating with Underscore, Handlebars, and Mustache
  5. Chapter 5: Backbone.js Routers and Events
  6. Chapter 6: Backbone.js Start To Finish: Twitter App Example
  7. Chapter 7: The Backbone Ecosystem
  8. Chapter 8: Testing Your Backbone.js Application
  9. Chapter 9: Using Grunt for Your Build Process
  10. Chapter 10: Extending Backbone.js with Marionnette
  11. Chapter 11: Best Practices With Backbone.js
  12. Chapter 12: Creating A Manageable JavaScript Codebase

Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page 50-52:

Express server has method allowCrossDomain() added as middleware.

However, when attempting to try out the .save() method on p51 using the suggestions in the README file for Chapter 3, there is a CORS error. The same happens for the .destroy() method on p52.

It would be nice if there was an explanation in the book to explain why these errors occur or possibly a way to circumvent them by modifying the code. There is currently no indication in the text that these methods will not work as expected.


    1. Pro AngularJS


      View Book

    2. Pro JavaScript Techniques


      View Book

    3. Beginning AngularJS


      View Book

    4. JavaScript Quick Syntax Reference


      View Book