新しいフーディープロジェクトをhttp://Hood.ieでチェックアウトします。
それはCouchDBのユーザーを含むアカウントを管理するためのAPIが含まれます。
// sign up
hoodie.account.signUp('[email protected]', 'secret');
// sign in
hoodie.account.signIn('[email protected]', 'secret');
// sign out
hoodie.account.signOut();
// change password
hoodie.account.changePassword('currentpassword', 'newpassword');
// change username
hoodie.account.changeUsername('currentpassword', 'newusername');
// reset password
hoodie.account.resetPassword('[email protected]');
// destroy account and all its data
hoodie.account.destroy();
// find out who the currently logged in user is (returns undefined if none)
hoodie.account.username;
やイベントを...
// user has signed up (this also triggers the authenticated event, see below)
hoodie.account.on('signup', function (user) {});
// user has signed in (this also triggers the authenticated event, see below)
hoodie.account.on('signin', function (user) {});
// user has signed out
hoodie.account.on('signout', function (user) {});
// user has re-authenticated after their session timed out (this does _not_ trigger the signin event)
hoodie.account.on('authenticated', function (user) {});
// user's session has timed out. This means the user is still signed in locally, but Hoodie cannot sync remotely, so the user must sign in again
hoodie.account.on('unauthenticated', function (user) {});
ご回答ありがとうございます。 CouchDBは、HTMLを直接提供し、ビルドインのショーとリスト機能を使って、独自のアプリケーションを構築することができます。 はこちらをご覧(アプリ)を持つ: http://couchbuch.iriscouch.com/kassenbuch/_design/buchhaltung/index.html とここ(ソファ) http://couchbuch.iriscouch.com/_utils /document.html?kassenbuch/_design/buchhaltung もちろん、単純なJavaScriptを使ってmap/reduce関数で定義したビューをポーリングすることもできます。しかし、シンプルなサーバーサイドコードを実行するためのものは何も見つかりません。 –
私の悪い私の悪いところは、私は私たちが私たちのクライアントに提供するnoSQLソリューションのためにcouchDBとmongoDBを見ていたことを知っていましたが、私はmongoDBを選択した後にのみmongoDBを探索していたので、couchDBはセットアップ。その場合、私は誰かがあなたにもっと関連性の高い答えを与えることができることを願っています。 –
いいえ、それは真実ではありませんが、使用することはできますが、その性質上CouchDBとのインターフェイスにはサーバー側の言語は必要ありません。 http://couchdb.apache.org/を参照してください: '' 'CouchDBはウェブを完全に包含するデータベースです。 JSONドキュメントでデータを保存します。 HTTP経由でWebブラウザでドキュメントにアクセスします。 JavaScriptを使用してドキュメントを照会、結合、変換します。 – rekinyz