loopback-promised is an HTTP client for StrongLoop Loopback using Promise.
This project is universal (in past, called "isomorphic"). Bundle into your project and it runs.
$ npm install loopback-promised
var LoopbackPromised = require('loopback-promised')
var lbPromised = LoopbackPromised.createInstance({
baseURL: 'http://localhost:3000'
});
var client = lbPromised.createClient('notebooks')
client.create({name: 'Biology'}).then(function(notebook) {
console.log(notebook.id)
console.log(notebook.name)
})
MIT