The example code is somewhat weird: var db = new PouchDB('dbname'); db.put({ _id: 'dave@gmail.com', name: 'David', age: 66 }); db.changes({ onChange: function() { console.log('Ch-Ch-Changes'); } }); db.replicate.to('http://example.com/mydb'); Shouldn't you set up the event listener before "db.put()"?
Show HN: PouchDB - The JavaScript database that syncs
11–20 of 42 posts
Re: Show HN: PouchDB - The JavaScript database that syncs
#12Is it possible to do something like this for a MySQL (innodb with relational keys) database ? I am about to begin work on a project that might be used in countries where we don't have constant connectivity (internet and electricity) .. and we don't want to lose or corrupt data due to connectivity ...
Can PouchDB sync with MySQL / my current non CouchDB database?
No, the data model of your application has a lot of impact on its ability to sync, relational data with the existence of transactions make this harder. It may be possible given some tradeoffs but right now we are focussing on making PouchDB (PouchDB / CouchDB) sync as reliable and easy to use as possible.
Re: Show HN: PouchDB - The JavaScript database that syncs
#13I just put up this website, its ugly but working on the content, in particular I want it very easy to understand wtf it is and get started, would love to hear your feedback.
Re: Show HN: PouchDB - The JavaScript database that syncs
#14Some beginning tutorials/intros to pouchdb: http://pouchdb.com/getting-started.html http://briantoth.github.io/Tutorial/2013/03/19/pouchdb-intro... http://mattgwwalker.wordpress.com/2013/04/08/pouchdb-2/
Todo Tutorial using AngularJS and PouchDb http://twilson63.github.io/ngTodoPouch/
Building Offline Applications With AngularJS and PouchDB http://mircozeiss.com/building-offline-applications-with-ang...
Other Apps Using PouchDB https://github.com/daleharvey/pouchdb/wiki/Who-or-What-Is-Us...
including this offline conference app https://github.com/axemclion/conference
PouchVision - inspect and interact w/pouch instances http://brudolph.pouchvision.jit.su/
Puton - bookmarklet for inspecting/editing pouch dbs http://puton.jit.su/
PeerPouch (PouchDB-over-WebRTC) - in development at one point https://github.com/natevw/pouchdb
Re: Show HN: PouchDB - The JavaScript database that syncs
#15I just put up this website, its ugly but working on the content, in particular I want it very easy to understand wtf it is and get started, would love to hear your feedback.
Here is daleharvey giving an intro to PouchDB at http://allyourbaseconf.com last year. https://vimeo.com/56632201
Re: Show HN: PouchDB - The JavaScript database that syncs
#16The example code is somewhat weird: var db = new PouchDB('dbname'); db.put({ _id: 'dave@gmail.com', name: 'David', age: 66 }); db.changes({ onChange: function() { console.log('Ch-Ch-Changes'); } }); db.replicate.to('http://example.com/mydb'); Shouldn't you set up the event listener before "db.put()"?
I mostly just wanted to highlight the key features with 'real' code in the order you would come across them, you are right though might be worth switching that, thanks
Re: Show HN: PouchDB - The JavaScript database that syncs
#17I just put up this website, its ugly but working on the content, in particular I want it very easy to understand wtf it is and get started, would love to hear your feedback.
The website is mostly very clear but I wasn't sure what the db on the backend would be, it sounds like it expects to work with couchdb but an adaptor could potentially be made to work with anything server side?
In the browser PouchDB will store its data in IndexedDB or WebSQL, in node its LevelDB, with the HTTP adapter you can use any product that implements the CouchDB HTTP Api protocol, currently this is CouchDB, Cloudant, PouchDB-Server and Couchbase Lite (previously TouchDB)
The important part is that it can only sync with a backend that implements the same replication protocol.
Re: Show HN: PouchDB - The JavaScript database that syncs
#18Yeah there's a lot of interesting stuff being developed around pouchdb, I've been slowly checking it out the past couple of months: Some beginning tutorials/intros to pouchdb: http://pouchdb.com/getting-started.html http://briantoth.github.io/Tutorial/2013/03/19/pouchdb-intro... http://mattgwwalker.wordpress.com/2013/04/08/pouchdb-2/ Todo Tutorial using AngularJS and PouchDb http://twilson63.github.io/ngTodoPouch/ Bu…
Thanks