
Installing BackboneJS
Getting started and installing is easy. First, go to the Backbone.js website and download the development or production file of the latest stable version. Then download the dependancies.
Dependancies
BackboneJS’s only dependancies are jQuery and UnderscoreJS. Underscore provides many helper methods and can be interchanged with Lo-Dash (more about this in future articles).
Installation
To set up your environment, all that you need to do is include those three files.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<script src="js/underscore.js"></script>
<script src="js/jquery.js"> </script>
<script src="js/backbone.js"></script>
</body>
</html>
That’s it! Now you can start developing your Single Page Apps. Next, we’ll dive into Backbone Models.
Digging into Backbone.js series:
- What is Backbone.js?
- Installing Backbone.js
- Models
- Collections
- Views
- Routers