Javascript data access object
Install all command line dependancies:
npm install -g bower browserify uglifyify mocha-phantomjs jsdoc-to-markdown
npm install git+https://github.com/kwantu/dao.git#0.1.0
bower install https://github.com/kwantu/dao.git#0.1.0
npm run browserify
####To use within browser based application:
- PouchDB Version 5.0.0 - to use with browser (COMMAND: bower install pouchdb#5.0.0 --save)
####To use in a Cordova based Android application:
- Couchbase Lite plugin Version 1.2.1 - to use within Cordova application (COMMAND: cordova plugin add https://github.com/couchbaselabs/[email protected])
- Add dao.jar into your CLASSPATH and its order should be first in loading jars. (See "Orders and Exports" tab in Eclipse Java Build Path)
- First clone the repo
- Then install node dependancies:
npm install
- Install bower dependancies:
bower install
- Build the module:
npm run build
NOTE:
npm run build
executes the following commands:npm run browserify && npm run docs && npm test
Server & client side:
npm test
This is based on the 'jsdoc-to-markdown' module. See https://github.com/jsdoc2md/jsdoc-to-markdown for more information.
npm run docs