Instant Backbone.js Application Development [Instant]


This title is available as an eBook only
Instant Backbone.js Application Development [Instant]
eBook: $12.99
Formats: PDF, PacktLib, ePub and Mobi formats
$11.04
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Structure your web applications by providing models with key-value binding and custom events
  • Keep multiple clients and the server synchronized
  • Persist data in an intuitive and consistent manner

Book Details

Language : English
eBook : 64 pages
Release Date : July 2013
ISBN : 1782165665
ISBN 13 : 9781782165668
Author(s) : Thomas Hunter II
Topics and Technologies : All Books, Instant, Web Development, Open Source, Web Development, Web Services

Table of Contents

Instant Backbone.js Application Development
  • Instant Backbone.js Application Development
    • So, what is Backbone.js?
    • Installation
      • Step 1 – what do I need?
      • Step 2 – creating a folder
      • Step 3 – downloading the necessary files
      • Step 4 – creating new files
      • And that's it!
    • Quick start – building a Hello World app
      • Step 1 – adding code to the document
      • Step 2 – adding code to the main script
      • Step 3 – opening the project in your browser
      • Step 4 – encountering a problem
        • The missing script file
        • The script typo
    • Top 5 features you need to know about
      • Models and Collections
        • Step 1 – creating some files and folders
        • Step 2 – updating the main script
        • Step 3 – updating the document
        • Step 4 – updating the Contact model
        • Step 5 – updating the Contact collection
        • Step 6 – refreshing the browser
      • Views and Templates
        • Step 1 – creating some files and folders
        • Step 2 – updating the Contact view
        • Step 3 – updating the directory view
        • Step 4 – updating the document
        • Step 5 – updating the main script
        • Step 6 – refreshing the browser
        • Event listener examples
      • View events
        • Step 1 – getting ready
        • Step 2 – updating the document
        • Step 3 – updating the Contact view
        • Step 4 – updating the directory view
      • URL-based routing
        • Step 1 – creating a router script
        • Step 2 – updating the document
        • Step 3 – updating the main script
        • Step 4 – updating the Contacts view
        • Step 5 – updating the directory view
      • Persisting data to a server
        • Step 1 – getting ready
        • Step 2 – creating a server script
        • Step 3 – updating the Contacts collection
        • Step 4 – updating the main script
        • Step 5 – updating the router
        • Step 6 – updating the Contact view
        • Step 7 – updating the directory view
        • Step 8 – running the server
    • People and places you should get to know
      • Official sites
      • Community
      • Twitter

Thomas Hunter II

Thomas Hunter II is a Jack of all trades with over eight years of open source web development experience. This includes backend PHP / Node.js programming, MySQL / MongoDB database engineering, and frontend programming with JavaScript. He’s even done plenty of graphic design, game development, and music composition.
Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant Backbone.js Application Development [Instant] +    Penetration Testing with the Bash shell =
50% Off
the second eBook
Price for both: ₨229.20

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Use Models to store individual records of data
  • Work with Collections to iterate over individual Models
  • Utilize templates to make markup creation a breeze
  • Present your data to your user through Views
  • Trigger Events in your views
  • Develop pretty URLs using the Routing class
  • Keep a well-structured code directory
  • Persist your data to a webserver

In Detail

It’s easy to let a project get out of hand and become completely unmaintainable. However, this can be avoided by building a nicely-structured Backbone.js application. When working on a web application involving a lot of JavaScript, applications may end up as tangled piles of jQuery selectors and callbacks, all trying frantically to sync between the HTML UI, JavaScript logic, and the database on your server. With Backbone.js, you represent your data as models that can be created, validated, destroyed, and saved to the server.

Instant Backbone.js Application Development is a beginner-friendly book that will guide you through a step-by-step process to go from an empty project directory to a fully-functioning web application. The book also includes code samples that are easy to use and will guide you through the major features that Backbone.js has to offer.

Instant Backbone.js Application Development looks at the main types of objects that Backbone.js offers and has you instantiate specialized versions of each. These objects are stored in their own individual files and work together to build well-structured applications.

Your data will be stored using Collections and Models and presented to the user through Views and Templates. URLs will remain pretty and your browsing history will still work thanks to the Routing functionality. You will also learn how to build a JavaScript Single Page Application that communicates smoothly with your backend server using AJAX.

Approach

Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks. This book is a practical, step-by-step tutorial that will teach you to build Backbone.js applications quickly and efficiently.

Who this book is for

This book is targeted towards developers. It is assumed that you have at least a basic understanding of JavaScript and jQuery selectors. If you are interested in building dynamic Single Page Applications that interact heavily with a backend server, then this is the book for you.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software