Begin forwarded message:

From: St�phane Ducasse <stephane.ducasse@inria.fr>
Subject: Re: [Pharo-project] CouchDB and Pharo
Date: February 21, 2013 12:41:12 PM GMT+01:00
To: Jesus Mari Aguirre <jmariaguirre@gmail.com>


On Feb 21, 2013, at 10:58 AM, Jesus Mari Aguirre <jmariaguirre@gmail.com> wrote:

Hi Stef!
I have been working a lot in the CouchDB Jquery plugin and a ConfigurationOfSCouchDB and now I'm working on "Smalltalkize" Mustache templates. My idea is to have the new version for next week and start writing the doc just the day after.

excellent
You should post that to the list

I developed a new "Albums" application with a nice approach. All its code is written in Smalltalk although the whole application runs in client side, it's made using jquery couchdb driver and jquery mobile and covers authentication, open/update/create/delete documents , uploading file attachments and its renderization. It could be nice to guide the text.

Sweet :)

ConfigurationOfSCouchDB has several groups that will allow us to install only what we need, for instance we have:
"default" "viewserver" "mustache" "jquerycouchdbplugin"... I will detail it in the document we are plaining to write.
I've learn on ConfigurationOf... with the Metachello Paro 2.0 draft chapter, very good job! Ah! the project is available in smalltalkhub, I pushed an hour ago�

Superbe
Let me know when I can read something.


Thanks for your suggestions 
keep contact  


2013/2/1 St�phane Ducasse <stephane.ducasse@inria.fr>

On Jan 30, 2013, at 6:55 AM, Jesus Mari Aguirre wrote:

> Hi Stef!
>  There are many kind of scenarios between Seaside and CouchDB, Although I'm not a professional developer (This is not my job and it has never been) CouchDBServer was my first serious incursion in Smalltalk since one year ago).

Cool :)

> First of all I would write some clarifications.
> -CouchDB is not only a NoSQL database, it is also an application server and there are several API for this purpose (evently,mustache�).
> -SCouchDBViewServer project has just few thinks in common with Seaside(templates integration and jquery experimental plugin),

When I meant seaside, I wanted to refer to something less javascript or plain html.

> -SCouchDBViewServer cooperates with CouchDB to create Views, Shows and Lists with your data stored in CouchDB. Views are read by any client that has a CouchDB Driver.
> -Shows and Lists are pure and STATIC HTML and Js rendered by the function(BlockClosure) List using data(determined by the view in its url) passed by couchDB. All of three are cached and won't be refreshed until there were a modification in the related data and a client asked for this data again.
> -Main goal of the SCouchDDB.application category is creating a �CouchApp� �like environment.
> -Mustache templates are useful in show and lists and this was the main goal when I ported from javascript.
> -Mustache.seaside contains the WAMustacheTag class allowing Mustache and Seaside interaction.
>  -SCouchDB.jquery is an attempt to integrate the js jquery couchdb driver in seaside-jquery. But I have had no time enough to depurate and learn how seaside tags and jquery work on seaside.


Probably that we should explain that in the chapter
>
> After all of this very long clarification list�.I would suggest some scenarios:
>
> Deployment scenario
> -SEASIDE DEPLOYMENT WITH COUCHDB.
>             - CouchDB Installation
> - CouchDB configuration to redirect calls to Seaside. The most difficult is seaside configuration side (paths to access libs,CCS�)
> - Serving Files with CouchDB.(That could be the hardest work�we can use an app with all files attached�could be interesting )
>             -loading SCouchDBViewServer project
> Persistence scenario
> -SEASIDE PERSISTENCE WITH COUCHDB
>             -Create a new database.(easy�it�s in my tutorial)
> - Store/load a data model in CouchDB.  (easy�it�s in my tutorial)
>
> -SEASIDE USING JQUERY-MOBILE and COUCHDB
> -If we have the application model in seaside�.it will be a jquery mobile tutorial.
>             -
> -USING MUSTACHE TEMPLATES ON SEASIDE
> Very polemical�There are a lot of discussions about/against this topic.
>             -Loading Mustache project
>             -Using Templates (easy, I have examples)
>             -passing data to the templates.
>
>
>  � jesus I think that it would be good to have some configurationOf for Mustache and SCouch�
> Yes,it�s true, St�phane, but first of all I have to lean how a configurationOf it�s done� I will try to do it

I can help if you want.
I wrote also a (too) long chapter on it and we are working on tools to help peoplem

> What scenario do you think is more important for you? To me all of them are interesting!

The text does not have to be long but show some key points and kind of hand-ons
I would say one where we do not have the tutorial of the other guy and minimizing javascript and html
(I prefer to generate them :).

Now what we can do is you sketch something and send it to the community and we collect feedback and iterate.

We are working on a book that is called Pharo for the entreprise and this would fit perfectly there.


> I think I can help you to make an initial version.
>
> PS.Sorry for my long long post�


No I love such mails :)
>
> Jes�s.
>
>
>
> 2013/1/28 St�phane Ducasse <stephane.ducasse@inria.fr>
> Hi guys
>
> I would love to have a chapter on couchDB/Mustache/Seaside. I learned also Mustache :)
> So I contacted jesus and he sent me the source of the tutorial.
> Now I read it and there is a bit too much js and html to my taste :)
>
> So I have several questions:
>         - could we get a chapter on couchDB with less js.
>
>         - Is there somebody wanted to pair write with me?
>         Because I have time to read and fix and rewrite but not the write the first version.
>
>         - any other suggestion?
>
>         - may be get it up to date with the latest JQueryMobile and Pharo
>
> jesus I think that it would be good to have some configurationOf for Mustache and SCouch
> because it will help loading them.
>
> Stef
>
> > Hi!
> >
> > Just noticed your stuff:
> >
> > http://vinsicaves.seasidehosting.st/resources/Developing%20Applications%20with%20Smalltalk%20and%20CouchDB.pdf
> >
> > http://www.smalltalkhub.com/#!/~jmari/SCouchDBViewServer
> >
> > Looks very nice!
> >
> > I also wrote a view server implementation a while ago - I remember I did some tricks to make Compiler deal with it properly etc. Can dig it out an email it to you, in that way I am at least sure it didn't go to waste.
> >
> > regards, G�ran
> >
> > PS. I moved on to Riak after CouchDB and now I am heavily intrigued by HyperDex and have a binding brewing using NB FFI :)
> >
>
>