Free Sample
+ Collection

Backbone.js Blueprints

Andrew Burgess

Everything you need to know about building front end apps in Backbone.js is contained in this book. Packed with projects, code, and sound explanations, it’s the essential guide to this indispensable JavaScript library.
RRP $29.99
RRP $49.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 139781783286997
Paperback256 pages

About This Book

  • Gain insights into the inner working of Backbone to leverage it better
  • Exploit Backbone combined with the features of a Node powered server
  • Learn how to build seven step-by-step frontend applications

Who This Book Is For

If you are ready to learn about building frontend applications in Backbone, this is the book for you. Perhaps you've dipped your toe into Backbone and are ready to take the plunge. Even if you haven't, this book will teach you everything you need to know to build solid frontend apps with Backbone. You'll need to be pretty good at JavaScript and have a working knowledge of HTML and CSS, but other than that, you're good to go!

Table of Contents

Chapter 1: Building a Simple Blog
Setting up the application
Starting with the server
Creating the template
Adding the public folder
Beginning the Backbone code
Performing a quick and dirty test
Writing some views
Using our views
Creating a router
Viewing a post
Creating new posts
Adding comments
Chapter 2: Building a Photo-sharing Application
Creating user accounts
Creating our application navigation
Uploading photos
Sending photos from the server to the client
Creating profile pages
Creating the individual photo page
Following users
Displaying a followed user's photos
Chapter 3: Building a Live Data Dashboard
Planning our application
Setting up precompiled templates
Creating the models
Creating controls
Starting the router
Building the CreateEventView class
Creating the events table
Deleting a record
Editing event records
Making it live
Sorting events
Chapter 4: Building a Calendar
Planning our application
Creating the model and collection
Creating the month view
Creating the individual day screen
Writing the server code
Chapter 5: Building a Chat Application
Outlining the application
Setting up the application
Preparing our template
A word about Socket.IO
Creating modules
Creating users
Building the layout
Starting the router
Letting users join the fun
Joining a room
Building the chat module
Back to the controller
Adding some other routes
Writing CSS
Chapter 6: Building a Podcast Application
What are we building?
Building user accounts
Subscribing to and storing podcasts
Preparing index.ejs
Creating our models and collections
Building the navigation
Displaying podcasts
Creating a layout
Beginning the router
Subscribing to new podcasts
Displaying the list of episodes
Displaying episodes
Chapter 7: Building a Game
What are we building?
User accounts
Creating the game data
Writing the models
Writing the tokens view
Views of the clues
Creating the guess view
Building the info view
Wrapping our views in a GameView class
Starting the router
Creating the home view
Building a scoreboard
Writing the navigation
Adding new words

What You Will Learn

  • Discover seven different ways to create your own frontend Backbone.js applications
  • Create complex interfaces while keeping the code adaptable through Backbone Views
  • Control your applications' screens with simplicity through a Backbone router
  • Utilize Marionette and Chaplin, the Backbone extension frameworks
  • Build a Node.js server to manage the models your frontend application sends to it and requests from it
  • Work with templates that manage the heavy lifting of your view
  • Precompile your view for extra efficiency
  • Use Backbone extension libraries to create effective applications with less coding

In Detail

Backbone.js is an open source, JavaScript library that helps you to build sophisticated and structured web apps. It's important to have well-organized frontend code for easy maintenance and extendability. With the Backbone framework, you'll be able to build applications that are a breeze to manage.

In this book, you will discover how to build seven complete web applications from scratch. You'll learn how to use all the components of the Backbone framework individually, and how to use them together to create fully featured applications. In addition, you'll also learn how Backbone thinks so you can leverage it to write the most efficient frontend JavaScript code.

Through this book, you will learn to write good server-side JavaScript to support your frontend applications. This easy-to-follow guide is packed with projects, code, and solid explanations that will give you the confidence to write your own web applications from scratch.


Read More

Recommended for You