From user-return-22910-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Nov 26 11:20:27 2012 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E23DD187 for ; Mon, 26 Nov 2012 11:20:27 +0000 (UTC) Received: (qmail 32104 invoked by uid 500); 26 Nov 2012 11:20:25 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 32063 invoked by uid 500); 26 Nov 2012 11:20:25 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 32033 invoked by uid 99); 26 Nov 2012 11:20:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2012 11:20:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gabriel.mancini@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2012 11:20:19 +0000 Received: by mail-ob0-f180.google.com with SMTP id wd20so10310122obb.11 for ; Mon, 26 Nov 2012 03:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=GOzys4KpMaW3+6nDNmTnewhLYWJt6QC0z2K+HPVRz7M=; b=bZmoXM78WiIjoUUrdQOIXn9CtNVz/1d0UBF6IrgGIJtLSC2cSAuT3ZbywKLobjD1gO iADNzRCiuW0vMrXt62wctJfzxx4BUWke13q+7BZdPHVwIpgaC3cYWJVTIouUdtbgD+5G HCspLgQv84Mpme3YiLAX/jSx5QZYg2MPZcRNE/92WrG6uUa9M2K+9rccveEoT6MKUhWm zko43KLazizhK/ytIetX9wUj7irBUzs2KNC2zILIuXeJMOcjixCmRqhF8fap9AO0de4F slltoNNKTuGW//8hOOpsOGttVzq9jYmzRfyxG0kf7Wb3MR/PeDKsSHtnQAXyGOZWqdDE u8tg== Received: by 10.60.26.34 with SMTP id i2mr8860338oeg.113.1353928799066; Mon, 26 Nov 2012 03:19:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.76.129 with HTTP; Mon, 26 Nov 2012 03:19:38 -0800 (PST) In-Reply-To: References: From: Gabriel Mancini Date: Mon, 26 Nov 2012 09:19:38 -0200 Message-ID: Subject: Re: CouchDB plugin examples To: user@couchdb.apache.org Cc: CouchDB Developers Content-Type: multipart/alternative; boundary=e89a8fb205381e995904cf641d3b X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb205381e995904cf641d3b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 wrote: > In the spirit of re=EBnergizing 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 > --=20 Gabriel Mancini de Campos Arquiteto de Solu=E7=F5es +55 (11) 9449-1706 gabriel.mancini@gmail.com S=E3o Paulo - SP - Brasil --e89a8fb205381e995904cf641d3b--