punch-couchdb-content-handler

A custom Punch content handler to fetch data from CouchDB.

npm install punch-couchdb-content-handler
2 downloads in the last week
8 downloads in the last month

Punch CouchDB Content Handler

A custom Punch content handler to fetch data from CouchDB.

How to Use

  • Install the package:

    npm install punch-couchdb-content-handler

  • Open your Punch project's configurations (config.json) and add the following:

      "plugins": {
          "content_handler": "punch-couchdb-content-handler"
      }
    
  • You can use couchdb section to provide CouchDB specific configuration.

      "couchdb": {
          "server": "http://127.0.0.1:5984",
          "db": "example_com",
          "username": "admin",
          "password": "password"
      }
    
  • server - the Url of the CouchDB server.

  • db - the CouchDB database name.

  • username - the CouchDB username.

  • password - the CouchDB password.

npm loves you