Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 20505 invoked from network); 10 Mar 2011 10:58:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Mar 2011 10:58:59 -0000 Received: (qmail 8045 invoked by uid 500); 10 Mar 2011 10:58:58 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 8017 invoked by uid 500); 10 Mar 2011 10:58:58 -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 8009 invoked by uid 99); 10 Mar 2011 10:58:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 10:58:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of janez.stupar@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 10:58:52 +0000 Received: by iyf40 with SMTP id 40so1875235iyf.11 for ; Thu, 10 Mar 2011 02:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Ay0NvRP++pKEpKJx7lfTJHA1iGVyqGIIchgERhEuCvk=; b=VmFRupLi89QTAnMLzWsBCD/Naj2Ik8UBcEXabPxDqMHBkpKp06YWVNVZ30daPqHwJF xSJCZN823G+wbwiTY0S/s4tglAOU/pLBVmJEyQ3DcJJXEY8BV2Frn9K+iX1JJ31mzAqF kTUJSBSIGZbx212/KSA5jrT5u/abyUu8+/yko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IRcZ9jLGEyUgBURl/JbzJXUHYmO4zsg1VJqmM7kFtjvjIxededPYlVEkyuJb0Htjm+ 074hn41ug/5P9bwQ43Ex1yGnOCfFyfSYKtETjXsYzzqt+BXKbbWbJIrUS4huEJeibkd4 kHO0ioaQui4oEE299EqR25mvxMTWh1qc34LU4= MIME-Version: 1.0 Received: by 10.43.60.133 with SMTP id ws5mr9726678icb.89.1299754710932; Thu, 10 Mar 2011 02:58:30 -0800 (PST) Received: by 10.231.32.71 with HTTP; Thu, 10 Mar 2011 02:58:30 -0800 (PST) In-Reply-To: References: Date: Thu, 10 Mar 2011 11:58:30 +0100 Message-ID: Subject: Re: validate_doc_update responsibilities From: =?UTF-8?Q?Janez_=C5=A0tupar?= To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=bcaec51a8970d71d17049e1eb953 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51a8970d71d17049e1eb953 Content-Type: text/plain; charset=ISO-8859-1 Well Actuall couch.app.js is a part of CouchApp toolchain (beyond python script). Have you checked on the couchapp.org in last two months? I'm not trying to be snarky here - but I have been guilty of ignoring it myself :D only to later find out that it gets quite regular updates with tutorials, documentation and new functionality So what I was talking about is this library: https://github.com/couchapp/couchapp/blob/master/couchapp/templates/vendor/_attachments/jquery.couch.app.js Check the "Javascript Application Programming" headline on: http://couchapp.org/page/index It's exactly what you're proposing and it has already been done :D What I'm going to be working on in the future is building a simple web based IDE for CouchApps. Just to flatten the learning curve a bit - since I guess we are not the only ones having trouble to grasp the incredible amount of work that has already been done here :D Regarding the node.js - currently the couch.js and couch.app.js are jQuery plugins, but maybe it would be possible to refactor some common stuff out - for greater good in the long run. But I guess I'm prematurely optimizing. On Thu, Mar 10, 2011 at 11:31 AM, Caolan McMahon wrote: > > have you looked into the couchapp.js framework that Chris Anderson has > > built? > > I'm only aware of the python couchapp tool. That tool does not do what > I'm proposing. Is there another project I'm not aware of? > > > > It pulls the design document to browser and enables you to run specific > code > > from it. Id propose that you look into extending and/or clearing up > > couchapp. > > Hmm, sort of... Its more about adding client-side code to the design > doc's attachments. If you read the http://kansojs.org site you might > see that I'm proposing much tighter integration, focused on sharing > logic between the client and server, and even rewrite rules. > > As for extending couchapp, it would be *much* more difficult than > reimplementing it in this case. Using node.js opens up many more > options since it can manipulate commonjs modules easily. Thankfully, > it turns out implementing a basic tool to push couchapps is pretty > simple, which goes to show how awesome CouchDB is ;) > --bcaec51a8970d71d17049e1eb953--