Harri Kauhanen’s posterous

Random postings about Ruby, Rails, HTML, CSS, JavaScript and web development/consumer web services in general. 
« Back to blog

Coucher - Super simple RESTful HTTP service with Rack and CouchFoo

I was learning CouchDB with CouchFoo yesterday. IMHO they are sweet combination and I'm really exited to see how they will mature.

My real task at the moment was, however, to develop a RESTful HTTP service using Rails and as simply as possible. I had some success with Inherited Resources plugin and plain ActiveRecord. I then realized that perhaps having Rails is "too much" for my little service having only a simple XML interface and no HTML based UI or need for session handling. I digged into basics of Rack and suddenly had a great idea. I would only need a Rack aware server, CouchFoo and some Ruby code to implement my RESTful service.

I named it Coucher and here's the code:

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter