How to store and fetch data to pouchdb node

PouchDB is something that I keep meaning to do something with. I like the idea of it and it sync's up nicely with CouchDB which is a useful document-based nosql database that I've used previously since it is very JavaScript focused.

@akhtar321h, if the node isn't working for you, the alternative would be to:

  • cd ~/.node-red && npm install pouchdb
  • add a pouchdb: require('pouchdb'), to the globals section of your settings.js file
  • Add a function node
  • In the function node, add const PouchDB = global.get('pouchdb'); to the start

From there, you can use the example code from the PouchDB website.