GithubHelp home page GithubHelp logo

isabella232 / couchrest-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vibes/couchrest

0.0 0.0 0.0 3.53 MB

A RESTful CouchDB client based on Heroku's RestClient and Couch.js

Home Page: http://groups.google.com/group/couchrest

License: Apache License 2.0

Ruby 99.33% JavaScript 0.67%

couchrest-1's Introduction

CouchRest: CouchDB, close to the metal

CouchRest is based on CouchDB's couch.js test library, which I find to be concise, clear, and well designed. CouchRest lightly wraps CouchDB's HTTP API, managing JSON serialization, and remembering the URI-paths to CouchDB's API endpoints so you don't have to.

CouchRest is designed to make a simple base for application and framework-specific object oriented APIs. CouchRest is Object-Mapper agnostic, the parsed JSON it returns from CouchDB shows up as subclasses of Ruby's Hash. Naked JSON, just as it was mean to be.

Note: CouchRest only support CouchDB 0.9.0 or newer. Some features requires CouchDB 0.10.0 or newer.

Important Upgrade Notice

2011-04-04: Time#to_json no longer overwritten!

Now sticking to JSON standard format. Ensure you views using Time will be ordered correctly after upgrade!

Easy Install

$ sudo gem install couchrest

Relax, it's RESTful

CouchRest rests on top of a HTTP abstraction layer using by default Heroku’s excellent REST Client Ruby HTTP wrapper.

Modelling

For more complete modelling support based on Rails 3's ActiveModel, please checkout CouchRest's sister project: CouchRest Model.

Extended Document

As of May 2010 support for the popular CouchRest::ExtendedDocument mixin has been moved to its own gem: couchrest_extended_document.

If you're starting a new project however, we recommend you use the more actively maintained CouchRest Model project, supported by the same team of developers.

Running the Specs

The most complete documentation is the spec/ directory. To validate your CouchRest install, from the project root directory use bundler to install the dependencies and then run the tests:

$ bundle install
$ bundle exec spec spec

To date, the couchrest specs have been show to run on:

  • Ruby 1.8.7
  • Ruby 1.9.2
  • JRuby 1.5.6

Docs

API: http://rdoc.info/projects/couchrest/couchrest

Check the wiki for documentation and examples http://wiki.github.com/couchrest/couchrest

Contact

Please post bugs, suggestions and patches to the bug tracker at http://github.com/couchrest/couchrest/issues.

Follow us on Twitter: http://twitter.com/couchrest

Also, check http://twitter.com/#search?q=%23couchrest

couchrest-1's People

Contributors

mattetti avatar samlown avatar tapajos avatar sporkd avatar will avatar candlerb avatar topfunky avatar wasnotrice avatar wildchild avatar ndarilek avatar jchris avatar chrisdurtschi avatar kirel avatar erickt avatar gbuesing avatar ferrous26 avatar sauy7 avatar viniciusteles avatar timanglade avatar soupmatt avatar jo avatar igal avatar tc avatar kowsik avatar dgraham avatar deepj avatar yohei avatar orangewolf avatar rafaelss avatar wagenet 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.