How do I use CouchDB as backend database to a MeteorJS app, instead of the default MongoDB?

后端 未结 3 546
我寻月下人不归
我寻月下人不归 2021-02-04 11:43

Really would like to use CouchDB, and maybe make the Meteor app get data updates via Meteor Publish and Subscribe. But can\'t seem to figure out how to connect the Meteor app wi

3条回答
  •  清酒与你
    2021-02-04 12:37

    Especially as this (Meteor+CouchDB) seems to be increasingly not happening, PouchDB is the best nearest alternative that I've found, and so I plan to start with it.

    PouchDB notables I find:

    1. ability to sync with the 2 major CouchDB hosts, with nice intro by (my favorite) Cloudant, plus your own hosting per http://pouchdb.com/faq.html
    2. very cross-platform, as compared to Meteor, also has nice compatability breakdowns plus supports Safari Desktop plus:
    3. its client emulation of the server database feels stronger and further along than Meteror indeed PouchDB can be its own server (running on Node),
    4. it has an impressive list of powerful external projects including plugins -take a peek, including:
      1. "Peer Pouch" (p2p --doubt Meteor can do that)
      2. Full-text and spacial search
      3. Lacks Meteor's impressive authentication (including Meetup accounts!), but basic authentication seems there and already strong with CouchDB (per https://github.com/nolanlawson/pouchdb-authentication ), and that mentions impressive authentication coming: http://en.wikipedia.org/wiki/Mozilla_Persona support.
      4. Lack's Meteor's live (self-updating) templates but from the plugins, has 3 "MV* Adapters" including similar and terribly popular AngularJS.
    5. Performance-wise it seems to mostly beat leading competitor Couchbase Lite

提交回复
热议问题