I want do make an couchapp in angular7 which uses and deploys in couchDB. With that the deployment and updates work with a normal replication unless i have to change the base app.
I need a basic user management in a web-interface that creates a 2. db for each user. In this db stuff is saved that only concerns the user and nothing global. the users are saved in the recipe-db. The user management should also be able to create a qr with the connection and sync info for the user. This way the App scans the qr and gets the login/sync for the recipes and user-shopping-list. This module doesn't have to be nice or designed, just work with a basic list and no delete or edits!
Most data will be in the recipes-db and i want a mechanism that only replicates the entries from recipes when it has a reference doc in user-shopping-list.
The main way to generate data is to make a server call to recipes-db which then replicates the data to the client after the request was successful. If the server is down or the app offline then it should put the request in the localhost replication of recipies to be sent as soon as server is reachable again.
There should also be nfc-read/write methods that are accessible by angular
user-shopping-list contains subscription docs with the recipe-id.
If a user adds ingredients from recipe to the shopping-list then a subscription is created in the user-shopping-list. This should tell the local instance of recipes-db to replicate the recipe. This helps me with offline availability.
I am pretty sure this is the right approach for me but if you have a better idea maybe you can convince me to do it your way.
The couchdb and angular app will be supplied by me!
When this is done i will require further modules in the app that are accessible from angular:
security (encrypt what is possible)
service in the background that triggers notifications,replications etc.
scan barcode and get product information from google
After that the hole thing also has to be done in iOS so there will be more work to do.