1.0.1 • Published 9 years ago

angular-ivonet-couchdb v1.0.1

Weekly downloads
3
License
Apache 2.0
Repository
github
Last release
9 years ago

angular-ivonet-couchdb

An AngularJS CouchDB module.

This module enables easy access to CouchDB from an angular application

Prerequisites

  • CouchDB installed and available on localhost
    • make sure you have at least one admin installed through futon (admin console)
  • Run the couch_db/couch_db_setup.sh script (chmod +x it first)
    • CORS is also a resource to look at.
    • Note that the 'origins' = '*' is not a good idea for production!
  • curl if you want to use the couch_db script

Build

npm install
gulp dist

Please look at the example/index.html and try stuff out. Just open it in a browser and start having fun.

Or look at the unit tests (in progress)

Have a look at the couch_db for an example setup script

Test

Single run

gulp test

Autorun

gulp tests

Usage in Angular Project

bower install angular-ivonet-couchdb --save

or

npm install angular-ivonet-couchdb  --save

For the rest see the example (app.js and index.html)

Bugs / Tips / Comments

Please contact me here

TODO

  • Prohibit / in _id's
  • Add Attachment support

License

Apache 2.0