Implement “Database per user pattern” in CouchDB (Cloudant <-> PouchDB)

这一生的挚爱 提交于 2019-12-10 10:57:18

问题


Can anyone provide me a simple example how to implement the "Database per user pattern" in CouchDB (Cloudant <-> PouchDB)? The users get authenticated with Auth0 (jwt). I'm not able to find something regarding this topic.

Any help would be appreciated!


回答1:


here is a sample register/sign-up application using the "one database per user" pattern. you can review it's approach to help you get started.

however, you may want to consider cloudant-envoy which allows your client side code can adopt a "one database per user" design pattern but stores all the users' data in one large database preventing the proliferation of databases.



来源:https://stackoverflow.com/questions/39385757/implement-database-per-user-pattern-in-couchdb-cloudant-pouchdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!