Thursday 2 October 2014

Introduction to Backbone

What is Backbone?

Backbone is a library which provides a set of features to structure you web application. Using backbone it is possible to achieve traditional MVC pattern.


Why Backbone?

  • light weight fast and has a small memory footprint
  • provides client side app structure
  • provides RESTful JSON interface (CRUD Methods) for synchronizing date between sever 
  • easy for maintenance 
  • data binding(tying data) between DOM and object becomes simple
  • offers custom events to notify the changes between UI and view
  • and lot more...

When to use Backbone?

  • to build single page web applications
  • to build web applications with the choice of different frameworks 
Also it involves many factors based on your project needs.

How to Start?

  1. download backbone library 
  2. download underscore which is the only hard dependency for backbone
  3. download jQuery for DOM manipulation, RESTful persistence and history support 

What are the components of backbone?

  • Model
  • View
  • Collection
  • Events
  • Router
  • Sync

In my next tutorial we will see about the components

    No comments:

    Post a Comment