You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Jason Smith <jh...@iriscouch.com> on 2012/11/24 07:00:47 UTC

CouchDB plugin examples

In the spirit of reënergizing Futon, I open-sourced a plugin we use at
Iris Couch, futon_couchdb.

https://github.com/iriscouch/futon_couchdb

This plugin makes /_utils dynamic, serving any of

* Mobile Futon if you are mobile (I know, user-agent sniffing is out of vogue)
* Sammy Futon if you configure it, or use the Easter egg
* Normal Futon

The code and even the feature are quite bad. However it is an
excellent example of how to make a CouchDB plugin. The entire project
is 25 commits, and if you read the changes, you can learn many things:

* Making a minimal Rebar (Erlang) project
* Building such a project, "linking" against CouchDB.
* Integrating the plugin (an http handler) into CouchDB
* Supporting custom configuration options, and defining their defaults
* Using files from a plugin-local private directory

So if you are interested in CouchDB development, maybe it will help
you get your feet wet.

A more advanced example is pingquery_couchdb, with which the Erlang
part of CouchDB "pings" the JavaScript part, and verifies the
response.

https://github.com/iriscouch/pingquery_couchdb

-- 
Iris Couch

Re: CouchDB plugin examples

Posted by Gabriel Mancini <ga...@gmail.com>.
it's a great news, i think is a huge contribution to community.
and a nice tool to learn, not only to operation but to learn more about how
build a plugin to couchdb


On Sat, Nov 24, 2012 at 4:00 AM, Jason Smith <jh...@iriscouch.com> wrote:

> In the spirit of reënergizing Futon, I open-sourced a plugin we use at
> Iris Couch, futon_couchdb.
>
> https://github.com/iriscouch/futon_couchdb
>
> This plugin makes /_utils dynamic, serving any of
>
> * Mobile Futon if you are mobile (I know, user-agent sniffing is out of
> vogue)
> * Sammy Futon if you configure it, or use the Easter egg
> * Normal Futon
>
> The code and even the feature are quite bad. However it is an
> excellent example of how to make a CouchDB plugin. The entire project
> is 25 commits, and if you read the changes, you can learn many things:
>
> * Making a minimal Rebar (Erlang) project
> * Building such a project, "linking" against CouchDB.
> * Integrating the plugin (an http handler) into CouchDB
> * Supporting custom configuration options, and defining their defaults
> * Using files from a plugin-local private directory
>
> So if you are interested in CouchDB development, maybe it will help
> you get your feet wet.
>
> A more advanced example is pingquery_couchdb, with which the Erlang
> part of CouchDB "pings" the JavaScript part, and verifies the
> response.
>
> https://github.com/iriscouch/pingquery_couchdb
>
> --
> Iris Couch
>



-- 
Gabriel Mancini de Campos
Arquiteto de Soluções

+55 (11) 9449-1706
gabriel.mancini@gmail.com
São Paulo - SP - Brasil

Re: CouchDB plugin examples

Posted by Gabriel Mancini <ga...@gmail.com>.
it's a great news, i think is a huge contribution to community.
and a nice tool to learn, not only to operation but to learn more about how
build a plugin to couchdb


On Sat, Nov 24, 2012 at 4:00 AM, Jason Smith <jh...@iriscouch.com> wrote:

> In the spirit of reënergizing Futon, I open-sourced a plugin we use at
> Iris Couch, futon_couchdb.
>
> https://github.com/iriscouch/futon_couchdb
>
> This plugin makes /_utils dynamic, serving any of
>
> * Mobile Futon if you are mobile (I know, user-agent sniffing is out of
> vogue)
> * Sammy Futon if you configure it, or use the Easter egg
> * Normal Futon
>
> The code and even the feature are quite bad. However it is an
> excellent example of how to make a CouchDB plugin. The entire project
> is 25 commits, and if you read the changes, you can learn many things:
>
> * Making a minimal Rebar (Erlang) project
> * Building such a project, "linking" against CouchDB.
> * Integrating the plugin (an http handler) into CouchDB
> * Supporting custom configuration options, and defining their defaults
> * Using files from a plugin-local private directory
>
> So if you are interested in CouchDB development, maybe it will help
> you get your feet wet.
>
> A more advanced example is pingquery_couchdb, with which the Erlang
> part of CouchDB "pings" the JavaScript part, and verifies the
> response.
>
> https://github.com/iriscouch/pingquery_couchdb
>
> --
> Iris Couch
>



-- 
Gabriel Mancini de Campos
Arquiteto de Soluções

+55 (11) 9449-1706
gabriel.mancini@gmail.com
São Paulo - SP - Brasil