JavaScript client for hook.
Initialize with your app's credentials:
varhook=newHook.Client({endpoint: "http://localhost:4665/",app_id: 1,// your app idkey: 'test'// browser credentials of your app});Creating collection entries:
hook.collection('posts').create({title: "Post name",summary: "My awesome new post",stars: 5});Filtering:
hook.collection('posts').where('stars','>=',5).then(function(data){console.log(data);});View full documentation here.
You'll need nodejs installed first. Then run the following commands:
$ npm install -g grunt-cli bower
$ npm install
$ bower install
$ grunt
To build and publish the docs:
make publish-docsMIT