带有 Node Web Api 服务器层的 CouchDB 的 PouchDB?
PouchDB with CouchDB with Node Web Api Server Layer?
只是想确定一个新系统。我们想使用 react-native 构建一个带有离线存储的移动应用程序。
我们最初打算使用节点并创建一个与 MongoDB 一起工作的网络 api 层。然而,在研究了离线存储之后,我们发现了 PouchDB。但是 pouch 必须使用 CouchDB。因此,我们正在考虑使用 CouchDb 并拥有一个平面数据库层,其中包含我们在应用程序中建模的所有业务和数据逻辑。
然而,我们可能需要做一些服务器端的事情(例如从组织中的其他地方提取其他记录)。
那么我们可以使用节点和 CouchDb 一起部署 Web api 吗?这将如何工作?完全独立还是在同一个节点进程中?
So can we deploy a web api using node alongside CouchDb?
当然可以。
How would this work?
我不确定哪种解决方案适合您的需求,但一种解决方案是使用以下技术堆栈开发网络应用程序:NodeJS/Express、CouchDB/PouchDB 和 ReactJS/MobX。关于 CouchDB 的重要一点是,您 shouldn't think about it like any other database . Basically, you don't need any server-side code to talk to CouchDB, it can all be done on the client-side with PouchDB. The live sync of PouchDB is extremely convenient at handling offline/online storage. If you're considering ReactJS, take a look at MobX.
只是想确定一个新系统。我们想使用 react-native 构建一个带有离线存储的移动应用程序。
我们最初打算使用节点并创建一个与 MongoDB 一起工作的网络 api 层。然而,在研究了离线存储之后,我们发现了 PouchDB。但是 pouch 必须使用 CouchDB。因此,我们正在考虑使用 CouchDb 并拥有一个平面数据库层,其中包含我们在应用程序中建模的所有业务和数据逻辑。
然而,我们可能需要做一些服务器端的事情(例如从组织中的其他地方提取其他记录)。
那么我们可以使用节点和 CouchDb 一起部署 Web api 吗?这将如何工作?完全独立还是在同一个节点进程中?
So can we deploy a web api using node alongside CouchDb?
当然可以。
How would this work?
我不确定哪种解决方案适合您的需求,但一种解决方案是使用以下技术堆栈开发网络应用程序:NodeJS/Express、CouchDB/PouchDB 和 ReactJS/MobX。关于 CouchDB 的重要一点是,您 shouldn't think about it like any other database . Basically, you don't need any server-side code to talk to CouchDB, it can all be done on the client-side with PouchDB. The live sync of PouchDB is extremely convenient at handling offline/online storage. If you're considering ReactJS, take a look at MobX.