关于json:AngularJS和CouchDB如何集成? | 珊瑚贝

How to integrate AngularJS and CouchDB?


我正在尝试将 AngularJS 和 CouchDB 与 json 类型的文档一起使用。任何人都可以提供任何关于这些集成的示例,就像任何 CRUD 示例一样工作和集成,以便我可以执行任何 crud 操作并可以在数据库中/从数据库中保存/检索任何 json 文档。提前致谢。


您应该看一下 PouchDB – https://pouchdb.com/ – 您可以将 pouchdb 用作 http api 并从您的 angularJS 服务连接到远程 couchdb 数据库。如果您使用 angular 1.2 到 1.5,还有几个 pouchdb angular js 模块可用。

您可以在此处获取更多信息:https://pouchdb.com/guides/setup-couchdb.html

  • 谢谢你的回复,对我有用!
  • 我已经浏览了上述文档,我可以有任何工作示例测试示例,例如任何表单 crud 操作来存储和检索 json 文档。提前致谢 !


如果你使用 expressJS,你可以将 CouchDB 与 nano 集成:

http://expressjs.com/fr/guide/database-integration.html#couchdb

https://github.com/dscape/nano

  • 感谢您的回复 !对我有用!


来源:https://www.codenong.com/38696314/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_9218.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?