No description, website, or topics provided.
JavaScript HTML Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
couch_db
dist
example
src
test
.gitignore
README.md
bower.json
gulpfile.js
karma.conf.js
package.json

README.md

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