puton icon indicating copy to clipboard operation
puton copied to clipboard

Puton is no longer maintained. Check out the PouchDB inspector for Chrome and PouchDB inspector for Firefox

Puton (Futon for PouchDB)

**Puton is no longer maintained. Check out the PouchDB inspector for Chrome and PouchDB inspector for Firefox

Puton is to PouchDB what Futon is to CouchDB.

The general idea is to provide a simple way to inspect a browser's PouchDB.

There are several constraints in this regards (same origin policy being one of them). Consequently, Puton is implemented as a javascript bookmarklet so that it can be injected into the relevant pages and access the pages' pouchdb documents.

Developing puton

To get started, run the following commands:

  • install grunt-cli
$ npm install -g grunt-cli
  • install npm dependencies
$ npm install
  • starts puton
node puton.js
  • starts puton in production mode
$ NODE_ENV=production node puton.js

Grunt tasks

  • lint
    • Lint the various files
  • build:all
    • concatenate lib files
    • uglify lib files
    • grunt build
  • build
    • concatenate script files
    • uglify script files
    • concat lib.min with script.min
  • minify
    • minify css files
  • updatelibs
    • Updates Backbone, Underscore, jQuery
    • build:lib
  • updatepouch
    • Update Pouch to latest version
  • test
    • Runs Jasmine tests
  • browser
    • Starts Connect Server to serve tests at http://localhost:9001
  • release (default task)
    • lint
    • updatepouch
    • test
    • build
    • minify
  • run: Starts Puton