Backbone.js Stack
Presentation
RESThub Backbone stack provides a client-side full stack and guidelines for building enterprise grade HTML5 applications. It could be used with any server backend: Ruby, PHP, NodeJS, JEE, Spring, Grails …
In addition to the existing libraries included in the stack, it provides additional functionalities (mainly Backbone.js addons) designed to allow you to build a real enterprise grade application, and described in this documentation.
The Backbone.js 2.1.2 stack includes the following libraries:
- jQuery 1.9.1 (documentation)
- Backbone.js 1.0.0 (documentation) and its [localstorage adapter] (http://documentcloud.github.com/backbone/docs/backbone-localstorage.html)
- Underscore.js 1.4.4 (documentation)
- Underscore.String 2.3.0 (documentation)
- Require.js 2.1.5 with i18n and text plugins (documentation)
- Handlebars 1.0 (documentation)
- A console shim + client logging to server mechanism
- Twitter Bootstrap 2.3.2 (documentation) and its JS plugins
- Form Validation: Backbone Validation 0.8.1
- Parameters support on view routing: Backbone Query Parameters 0.3.0
- Datagrid: Backbone Datagrid 0.3.2
- Paginated lists: Backbone Paginator 0.7.0
- Asynchronous calls: Async
- Dispatching keyboard shortcuts: Keymaster
- Get and set relations (one-to-one, one-to-many, many-to-one) for Backbone models: Backbone Associations 0.5.1
- Parsing, validating, manipulating, and formatting dates: Moment 1.7.2
You can find more details and explanation about these libraries and their usage in resthub here.
Before going deeper in the RESThub Backbone stack, you should read the great documentation Developing Backbone.js Applications by @addyosmani, it is a great introduction to pure Backbone.js.
Versions & Changelogs
Backbone Stack current version is 2.1.2.
You can find RESThub Backbone Stack release changelogs here
Bootstrap your project
There are 2 ways to use it in your project:
- If you are starting a new RESThub Spring + Backbone stack project, the better way to use it is to use one of the Backbone.js webappp Maven Archetypes described here
- You can simply download latest RESThub Backbone.js stack, and extract it at the root of your webapp:
The Todo RESThub example project is the reference example project using this stack.
Tutorial
You should follow RESThub Backbone Stack tutorial in order to learn step by step how to use it. Available with or without answers : here