Coder Social home page Coder Social logo

cornercouch's Introduction

CornerCouch

CornerCouch - AngularJS module for CouchDB

Make sure to check the Wiki on GitHub for more information

See an example on my IrisCouch or access the same data cross-site (JSONP or CORS) from my web site

CornerCouch wraps the CouchDB core http APIs for documents, attachments, views, and sessions in three JavaScript object classes: CouchServer, CouchDB, and CouchDoc. The 'CornerCouch' module exposes a single resource 'cornercouch', which is the factory for CouchServer objects. CouchDoc is an inner class of CouchDB and CouchDoc objects are automatically associated with a database.

On the Angular side CornerCouch relies on $http, providing a higher level http/REST interface of its own, separate from $resource. Its sole dependency is the core AngularJS 'ng' module. jQuery is not required and not utilized.

CornerCouch has been developed based on Angular.js 1.0.3 and CouchDB 1.2.0. The upload of attachments depends on the HTML5 File API and does not support IE9 or older.

Bugs and Fixes

Please report any problems to me via e-mail or as a GitHub issue

2013-11-16

  • Included the guestbook.html sample here on GitHub
  • Upgraded to Angular.js 1.2.1
  • Implemented CouchDB.queryMore() and CouchDB.queryActive

2013-03-24

Several small fixes identified by the expanded sample application

  • CouchServer.getUUIDs()
  • CouchServer.getInfo()
  • CouchDB.getInfo()
  • CouchServer.getUserDB()
  • CouchServer.getUserDoc()
  • CouchServer.logout sets userDoc = { }
  • CouchServer.login sets userCtx.name (fix for CouchDB glitch)

2013-03-15

Bug (typo) in CouchDoc.detach(name) fixed, test now included in sample app on IrisCouch.
Thanks to Reece Lewellen for finding it and providing the fix.

cornercouch's People

Contributors

eddelplus avatar kravietz avatar reactiveraven avatar alexkunin avatar ejeklint avatar bryant1410 avatar simonmd avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.