How to set up Backbone.JS

How to set up the backbone .js:-

BackboneJS is very easy to setup and work. This chapter will discuss the download and setup of the BackboneJS Library.

BackboneJS can be used in the following two ways −

  • Downloading UI library from its official website.

  • Downloading UI library from CDNs.

Downloading the UI library from its official website

Backbone.js Setup

As you can see, there are three options for download of this library −

  • Development Version − Right click on this button and save as and you get the full source JavaScript library.

  • Production Version − Right click on this button and save as and you get the Backbone-min.js library file which is packed and gzipped.

  • Edge Version − Right click on this button and save as and you get an unreleased version, i.e., development is going on; hence you need to use it at your own risk.

Dependencies

BackboneJS depends on the following JavaScript files −

  • Underscore.js − This is the only hard dependency which needs to be included. You can get it from here.

  • jQuery.js − Include this file for RESTful persistence, history support via Backbone.Router and DOM manipulation with Backbone.View. You can get it from here.

  • json2.js − Include this file for older Internet Explorer support.