Full Stack Web Development with Backbone.js

Book description

Learn how to build a full-stack application with Backbone.js by taking advantage of JavaScript modules, workflow automation, and Backbone’s interface building blocks. With this practical guide, author Patrick Mulder takes experienced backend developers and JavaScript programmers through the steps necessary to create a fully functional single-page application.

Table of contents

  1. Preface
    1. Who This Book Is For
    2. Who This Book Is Not For
    3. What This Book Will Do for You
    4. Why I Wrote This Book
    5. Other Resources
      1. The JavaScript Language
      2. jQuery and the DOM
      3. Other Backbone.js Resources
      4. API References
    6. Conventions Used in This Book
    7. Feedback and Code Examples
    8. Using Code Examples
    9. Safari® Books Online
    10. How to Contact Us
    11. Acknowledgments
  2. 1. The Bigger Picture
    1. Before You Get Started
    2. Backbonify Your Stack
      1. Using npm
      2. Local Backbone.js
      3. Backbone.js via Content Delivery Networks
    3. Modules, Packages, and Servers
      1. CommonJS Modules
      2. Beyond index.html
      3. Browserify
      4. Combining Express.js and Stitch
    4. When Things Go Wrong
    5. Conclusion
  3. 2. Kick-Starting Application Development
    1. Creating a Wireframe
    2. Decoupling State from the UI
      1. Models and Collections
      2. Views
      3. Backbone.js and MVC
    3. Preparing a Click Dummy
      1. Basic HTML and Style
      2. Building a Data Layer
      3. Basic Events
    4. Conclusion
  4. 3. Building the User Interface
    1. Referencing jQuery
    2. Interfacing the DOM
      1. Basic Rendering
      2. Bindings to Data Changes
      3. Basic View Templates
      4. Rendering a Collection
    3. Handling UI Events
    4. DRYer Views and ViewModels
    5. Conclusion
  5. 4. Router Basics
    1. Addressing State
      1. Preparing
      2. Defining Routes
      3. Navigating
    2. Orchestrating Views
      1. Preparing for a Layout View
      2. Parent and Child Views
    3. Conclusion
  6. 5. Transforming Collections
    1. Functional Enhancements
      1. Sorting
      2. Filtering
    2. Backbone.Obscura
    3. Conclusion
  7. 6. Advanced View Templates
    1. Views and Templates
      1. JST
      2. ECO
      3. Handlebars
      4. React and Others
    2. Build Automation
      1. Grunt
    3. Conclusion
  8. 7. Synchronizing State
    1. Fetching Remote Movies
      1. RESTful Web Services
      2. Mocking an API
    2. Basic Sync and Fetch
      1. Asynchronous Effects
      2. Firebase
    3. Conclusion
  9. 8. Basic API Concerns
    1. Backend Services
      1. Proxies
    2. Building a Movies Service
      1. Wrapping a Data Store
      2. Persistence
    3. Conclusion
  10. 9. Authentication
    1. Security in Browsers
    2. Cookies
      1. Signup
      2. Managing Sessions
    3. Sessions with Backbone
      1. A Navbar View
      2. A Modal View for Sign Up
      3. The Login Dialog
    4. The Session Logic
      1. A New Session
      2. State of a Session
      3. Logout
    5. Conclusion
  11. 10. Automated Workflows
    1. Improving Productivity
    2. Dependencies with Bower
    3. Say Hello to Yeoman
    4. RequireJS
      1. Main.js
      2. Adding Modules
    5. Scaffolding Components
    6. Conclusion
  12. 11. From Backbone To Thorax
    1. The Role of Frameworks
    2. Getting Started
      1. Prepare Mock Data
      2. Initializing the Application
    3. A Router Setup
    4. Thorax.Collection
    5. Rendering
    6. Conclusion
  13. A. Developing with JavaScript
    1. Installing Node
    2. Getting Functional with Underscore.js
      1. Collections and Arrays
      2. Functions
      3. Objects
      4. Utility
    3. jQuery Basics
      1. Selecting Elements
      2. Working with Events
      3. Ajax
  14. Index
  15. Colophon
  16. Copyright

Product information

  • Title: Full Stack Web Development with Backbone.js
  • Author(s): Patrick Mulder
  • Release date: June 2014
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781449370985