0.3.9 • Published 9 years ago

hook-javascript v0.3.9

Weekly downloads
35
License
-
Repository
github
Last release
9 years ago

hook-javascript client Build status

Selenium Test Status

JavaScript client for hook.

How to use

Initialize with your app's credentials:

var hook = new Hook.Client({
  endpoint:   "http://localhost:4665/",
  app_id: 1,   // your app id
  key: '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.

How to build

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-docs

License

MIT

0.3.9

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.0

10 years ago