mic...@michielbdejong.com
unread,Nov 28, 2012, 12:42:08 AM11/28/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to unho...@googlegroups.com
Hi Benoit,
We got pretty close with the efforts to support remotestorage "natively" on a couchdb instance, especially during Couchhack event in Vienna last summer where you also were, but in the end we decided that it is so much easier to put nodejs proxy in front of it, that we stopped spending time on the "native" implementation. So the easiest way would be to set up jcoglan's reStore, and then set the storage backend to save data to your couchdb instance on a local port.
But if you want to explore client-side (unhosted) web apps in combination with cross-origin couchdb, then pouchdb, combined with a couchdb instance with CORS enabled, looks like a much nicer approach. It will mean that the users of your app have to run a couchdb instance instead of a having to run a remotestorage server, and you would not get the auth model that remotestorage has (you would probably give each app "root" access to your whole couchdb instance), but on the other hand it would allow you to do couchdb-style map-reduce queries on the stored data. I think it depends on what you're familiar with as an app developer, whether you want to develop for pouchdb or for remotestorage. I personally would choose remotestorage, because sharing user data modules between apps is important to me, and map-reduce queries less so, but i can totally see why in a different situation you may choose pouchdb instead.
HTH,
Michiel.