Using PouchDB with a REST API ?

1,090 views
Skip to first unread message

Clément Prévost

unread,
Jul 16, 2014, 5:15:48 AM7/16/14
to pou...@googlegroups.com
Hi,

I was looking for an offline local database that sync when possible and I just landed on the PouchDB homepage. I love it, it's really awesome, but I don't know if it fits all my requirements.

My problem is simple: I already have a nice REST API built with Apigility and I don't want to throw it all away.
Will I be able to use PouchDB and make it sync with a REST API ?

Requirements:
- [x] Offline mobile storage
- [x] Automated sync
- [?] Integration with an existing REST API

Thanks !

Dale Harvey

unread,
Jul 20, 2014, 5:52:50 AM7/20/14
to pou...@googlegroups.com
That wont work unfortunately, PouchDB requires some specific functionality from the server that cant be provided from a generic rest api.

There is a library around I remember seeing that does straight caching of REST api calls, although that itself isnt complicated to implement, to get sync working pouch/couchdb is really needed, or some application specific prefetching

Thanks
Dale




--
You received this message because you are subscribed to the Google Groups "PouchDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pouchdb+u...@googlegroups.com.
To post to this group, send email to pou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pouchdb/b22b926e-e9a3-4ac5-8078-ec5dd74072c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Timothy Farrell

unread,
Jul 24, 2014, 10:48:29 AM7/24/14
to pou...@googlegroups.com
You might be able to do this if you build an adapter with local.js http://www.httplocal.com/
Reply all
Reply to author
Forward
0 new messages