Lockit CouchDB adapter for Koa
Lockit CouchDB adapter for Koa.
Installation
npm install lockit-koa-couchdb
Configuration
The adapter automatically saves the necessary views to your CouchDB. You only need the connection string in your config.js.
exportsdb = 'http://127.0.0.1:5984/';
or (long format with custom per-user-db prefix)
exportsdb = url: 'http://127.0.0.1:5984/' prefix: 'custom/' // default is 'lockit/'
Usage
var co = ;var Adapter = ;var config = ;var adapter = config; ;
Development
Use Tracuer to compile all ECMAScript 6 code.
npm run compile
Test
Tests are also written in ECMAScript 6 and compiled on the fly.
npm test
License
MIT