Hook 是一个开源的 Backend as a Service 项目。实现了创建一个后端应用的所有内容。
客户端示例代码:
var hook = new Hook.Client({ url: "http://local-or-remote-hook.com/index.php/", appId: 1, // your app's id key: 'test' // your app's public key }); hook.collection('posts').create({ title: "Post name", summary: "My awesome new post", stars: 5 }); hook.collection('posts').where('stars', '>=', 5).then(function(data) { console.log(data); });
客户端实现包括:
JavaScript (docs)
Android ( docs missing )
iOS ( docs missing )
C++ ( docs missing )
Ruby ( docs missing )
PHP (docs)
C# ( docs missing )