I've read about 10 related stackoverflow questions on this topic that are all scattered around a similar question... I want to simplify my question around a fictional "todo" application. I'm learning to code (javascript) and I'm hitting a roadblock. My "passion" project to keep me learning is pretty complex and solves a personal travel problem. One day I hope I can give back!
Here is the fictional app:
This app will be built using Ionic 2. The offline first app will let users log in and create their own list of "to dos." These should be accessible through their mobile phone and desktop and sync. The users should also be able share their todo lists with the community who may be able to copy someone else "Todo" list. The app should also be able to query what users are doing most like "brush my teeth" or "check out my batman collection." The users should also be able to use any social network login (Facebook, twitter, google, etc).
1) How do you structure the pouchdb/couchdb database? Open to couchbase/cloudant.
Is it database per user? Is it database per role? Is it one database for everyone (I know this has security issues)?
2) Is it right to assume that you would combine each client pouchdb database in to one large database for querying?
3) Do you have to use a NodeJS backend or server?
4) Can you use Auth0 or Stormpath for authentication?
I've been researching for about 5 days and I can't figure this out. I really appreciate all the help.
EDIT: I think this explains what I need pretty well aside from Authentication which I guess could work with Bluemix?
https://cloudant.com/blog/replication-with-cloudant-pt-3/#.V38hxpMrJE6
Thoughts?