Hook BaaS開(kāi)源 BaaS 項(xiàng)目
Hook 是一個(gè)開(kāi)源的 Backend as a Service 項(xiàng)目。實(shí)現(xiàn)了創(chuàng)建一個(gè)后端應(yīng)用的所有內(nèi)容。
客戶(hù)端示例代碼:
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);
});
客戶(hù)端實(shí)現(xiàn)包括:
評(píng)論
圖片
表情
