/sails-backbone-client

Load a Sails Backbone API in the Browser

Primary LanguageJavaScriptMIT LicenseMIT

-backbone-client

NPM version Build status Dependency Status

Load a Sails Backbone API in the Browser

Install

$ npm install sails-backbone-client --save

Usage

var BackboneClient = require('sails-backbone-client');
var sdk = { };
BackboneClient.create('localhost:1337/backbonemodel', sdk)
  .then(function (api) {
    api.Account.fetch() // ...
  });

License

MIT