sails-backbone
v0.11.6
Published
Generate client-side Backbone.js Models from a Sails.js API. Uses Backbone Relational to generate relations, and Backbone Validator to generate validation functions.
Downloads
58
Maintainers
Readme
-backbone
Generate client-side Backbone.js Models from a Sails.js API. Uses Backbone Relational to generate relations, and implements validation rules using Anchor, the same library used to validate Sails.js/Waterline Models and Attributes.
Install
$ npm install lodash sails-backbone --save
Usage
1. update sailsrc
{
"generators": {
"modules": {
"backbone-api": "sails-backbone"
}
}
}
2. run generator
$ sails generate backbone-api
Install in Browser
License
MIT