Hey all,
I'm going through the process of creating a simple CBLite app in PhoneGap using the plugin.
I have an app that uses Backbone and I'd like to write a Backbone.sync that works seamlessly with CBLite. I think there might be a lot of people that could benefit from this. All the examples use coax and I've never used that, so I'm not totally clear on how required it is to speak to CBLite.
I am trying to do all my interactions through $.ajax as provided by Zepto or jQuery.
Here's a quick little Gist that shows my uber basic test ajax call to CBLite in PhoneGap:
Here are some URLs I hit (in order) and the responses I got:
response: {"ok": true}
response: {"db_name": "test_db", "doc_count": 0.... etc
Params: {"first_name": "georges"}
response: {"status": 502, "error":"Invalid response from remote replication server"}
response: 404 !
So, what setting am I missing here?
I thought that I could use CBLite as a local storage mechanism even if remote replication wasn't set up.
Thanks,
Georges