Skip to content

IvoNet/angular-ivonet-couchdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Note

This repo is not maintained anymore as I do not use Couchdb at the moment. When I do I will take it up again of use modules from others.

If you like to contribute please do a pull request and I will take the time to merge it and give credit where credit is due :-)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published