You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Alessandro <de...@gmail.com> on 2013/02/27 00:29:18 UTC

frameworks/tools for couchdb development

Hi all,
   I'd like to use couchdb for a small project and I like to know which 
kind of tools or framework can help me with it.
For example I gave a look at "kanso", but it seems abandoned since 
almost nine month ago. I found few other tools, but they were older.

I need to write files locally, and test them on my pc before to publish 
the changes on the server.. a very basic job, I think.

Which kind of tools can I use?

Thanks for your advices

Alessandro

Re: frameworks/tools for couchdb development

Posted by Jeff Charette <io...@yahoo.com>.
> Thanks for the good news, but on the git repository I can't find any update
> https://github.com/kanso/kanso

Well the packages are actively managed and the package manager above doesn't have any issues I have come across in the last 6 months using it everyday.  Maybe there are no commits because there are no requests.  You should ask him if you have any ideas.

Jeff Charette | Principal 
We Are Charette
web / identity / packaging

m  415.298.2707
w  wearecharette.com
e   jeffrey@wearecharette.com

On Feb 28, 2013, at 4:03 AM, Alessandro <de...@gmail.com> wrote:

> 
>> If you look at http://kan.so/packages you will see it is actively maintained.  I have been using Kan.so for a while an really like it.  I have learned a lot from the packages.
> 
> Thanks for the good news, but on the git repository I can't find any update
> https://github.com/kanso/kanso
> 
> Does that page show the addons updates?
> 
> Alessandro
> 


Re: frameworks/tools for couchdb development

Posted by Alessandro <de...@gmail.com>.
> If you look at http://kan.so/packages you will see it is actively maintained.  I have been using Kan.so for a while an really like it.  I have learned a lot from the packages.

Thanks for the good news, but on the git repository I can't find any update
https://github.com/kanso/kanso

Does that page show the addons updates?

Alessandro


Re: tracking a guest session

Posted by Travis Paul <Tr...@visPaul.me>.
I sometime keep client side session-ish data (App preferences etc) in
LocalStorage as its supported as far back as IE8.
https://developer.mozilla.org/en-US/docs/DOM/Storage#localStorage

Not sure if that helps you at all.



On Wed, Feb 27, 2013 at 8:16 PM, Jeff Charette <io...@yahoo.com> wrote:

> The best answer I have found is to implement my own cookie handler.  Would
> be awesome if couch handled a session id for guests!
>
> This was a ton of help
> http://kan.so/packages/details/cookies
>
> require the cookie package
>
> Then in a show
>
>         /* set cookie for first request */
>         if (typeof req.cookie.wc_guest === 'undefined') {
>                 cookies.setResponseCookie(req, res, opt);
>         }
>         else {
>                 if (!res.headers) {
>                 res.headers = {};
>             }
>                 res.headers['Set-Cookie'] = req.cookie.wc_guest;
>         }
>
> That gets me started!
>
> Jeff Charette | Principal
> We Are Charette
> web / identity / packaging
>
> m  415.298.2707
> w  wearecharette.com
> e   jeffrey@wearecharette.com
>
> On Feb 27, 2013, at 6:00 PM, Jeff Charette <io...@yahoo.com> wrote:
>
> > So this seems like it should be pretty easy, but alas a google around
> the webosphere later I have no answer.
> >
> > What id do most people use to track a user session for a user who is not
> logged in.  My use case is adding some documents to a database with the
> session id, then updating the owner once the user logs in.  Think shopping
> cart.
> >
> > AuthSession is blank of course when not logged in.
> >
> > Hope I am not asking this wrong :)
> >
> > Jeff Charette | Principal
> > We Are Charette
> > web / identity / packaging
> >
> > m  415.298.2707
> > w  wearecharette.com
> > e   jeffrey@wearecharette.com
>
>

Re: tracking a guest session

Posted by Jeff Charette <io...@yahoo.com>.
The best answer I have found is to implement my own cookie handler.  Would be awesome if couch handled a session id for guests!

This was a ton of help
http://kan.so/packages/details/cookies

require the cookie package

Then in a show

	/* set cookie for first request */
	if (typeof req.cookie.wc_guest === 'undefined') {
		cookies.setResponseCookie(req, res, opt);
	}
	else {
		if (!res.headers) {
	        res.headers = {};
	    }
		res.headers['Set-Cookie'] = req.cookie.wc_guest;
	}

That gets me started!

Jeff Charette | Principal 
We Are Charette
web / identity / packaging

m  415.298.2707
w  wearecharette.com
e   jeffrey@wearecharette.com

On Feb 27, 2013, at 6:00 PM, Jeff Charette <io...@yahoo.com> wrote:

> So this seems like it should be pretty easy, but alas a google around the webosphere later I have no answer.
> 
> What id do most people use to track a user session for a user who is not logged in.  My use case is adding some documents to a database with the session id, then updating the owner once the user logs in.  Think shopping cart.
> 
> AuthSession is blank of course when not logged in.
> 
> Hope I am not asking this wrong :)
> 
> Jeff Charette | Principal 
> We Are Charette
> web / identity / packaging
> 
> m  415.298.2707
> w  wearecharette.com
> e   jeffrey@wearecharette.com


tracking a guest session

Posted by Jeff Charette <io...@yahoo.com>.
So this seems like it should be pretty easy, but alas a google around the webosphere later I have no answer.

What id do most people use to track a user session for a user who is not logged in.  My use case is adding some documents to a database with the session id, then updating the owner once the user logs in.  Think shopping cart.

AuthSession is blank of course when not logged in.

Hope I am not asking this wrong :)

Jeff Charette | Principal 
We Are Charette
web / identity / packaging

m  415.298.2707
w  wearecharette.com
e   jeffrey@wearecharette.com

Re: frameworks/tools for couchdb development

Posted by IOMATIX <io...@yahoo.com>.
If you look at http://kan.so/packages you will see it is actively maintained.  I have been using Kan.so for a while an really like it.  I have learned a lot from the packages.  

You can automate pushes with
http://kan.so/docs/Autopush_Changes_With_Watchr


The example apps are nicely structured and should give you a good place to start.  
http://kan.so/docs/Simplest_possible_form


Also, includes some nice helpers for dealing with importing data.
http://kan.so/docs/Working_with_JSON_data


Any other couchapp / package managers for couchdb?
 
Jeff Charette | Principal 
We Are Charetteweb / identity / packaging

m  415.298.2707
w  wearecharette.com
e   jeffrey@wearecharette.com


________________________________
 From: Alessandro <de...@gmail.com>
To: user@couchdb.apache.org 
Sent: Tuesday, February 26, 2013 6:29 PM
Subject: frameworks/tools for couchdb development
 
Hi all,
  I'd like to use couchdb for a small project and I like to know which kind of tools or framework can help me with it.
For example I gave a look at "kanso", but it seems abandoned since almost nine month ago. I found few other tools, but they were older.

I need to write files locally, and test them on my pc before to publish the changes on the server.. a very basic job, I think.

Which kind of tools can I use?

Thanks for your advices

Alessandro

Re: frameworks/tools for couchdb development

Posted by Nils Breunese <N....@vpro.nl>.
Travis Paul <Tr...@visPaul.me> wrote:

> Erica is an excellent tool for deploying local couchapps to couchdb:
> https://github.com/benoitc/erica
> Also, If you haven't already see: http://couchapp.org/page/index

+1 for erica.

Nils.

> On Tue, Feb 26, 2013 at 6:29 PM, Alessandro <de...@gmail.com> wrote:
> 
>> Hi all,
>>  I'd like to use couchdb for a small project and I like to know which
>> kind of tools or framework can help me with it.
>> For example I gave a look at "kanso", but it seems abandoned since almost
>> nine month ago. I found few other tools, but they were older.
>> 
>> I need to write files locally, and test them on my pc before to publish
>> the changes on the server.. a very basic job, I think.
>> 
>> Which kind of tools can I use?
>> 
>> Thanks for your advices
>> 
>> Alessandro

Re: frameworks/tools for couchdb development

Posted by Alessandro <de...@gmail.com>.
> This is indeed a very broad topic, unrelated to couchdb. I personnally
> use mustache.js [0] (I'm sure you'll recognize the author, thank you

Mustache.js seems easy, thanks for the link

Sorry for the "broad" topic, I knew; I only need few links to see in 
order to get ad idea

Alessandro

Re: frameworks/tools for couchdb development

Posted by Matthieu Rakotojaona <ma...@gmail.com>.
On Wed, Feb 27, 2013 at 11:17 AM, Alessandro <de...@gmail.com> wrote:
> Another small question: I had many problem rendering html pages in
> javascript, but it seem normal to follow this way with couchdb. Which
> javascript templating library can I use?

This is indeed a very broad topic, unrelated to couchdb. I personnally
use mustache.js [0] (I'm sure you'll recognize the author, thank you
!). I find it perfect for my little needs, since it doesn't mix logic
and presentation, while still offering a lot of functionnality.

[0] https://github.com/janl/mustache.js

-- 
Matthieu RAKOTOJAONA

Re: frameworks/tools for couchdb development

Posted by Александр Опак <op...@gmail.com>.
Hello!
See this tool:
https://github.com/datahogs/couch_gears


2013/2/27 Alessandro <de...@gmail.com>

>
>  Erica is an excellent tool for deploying local couchapps to couchdb:
>> https://github.com/benoitc/**erica <https://github.com/benoitc/erica>
>> Also, If you haven't already see: http://couchapp.org/page/index
>>
>
> I will look at Erica as soon as possibile, it seems ok for my job.
> I didn't know the other link, it is interesting.
>
>
> Another small question: I had many problem rendering html pages in
> javascript, but it seem normal to follow this way with couchdb. Which
> javascript templating library can I use?
> Probably It is not a couchdb relevant topic,but I think you all have
> thought at least one time to the problem. Note: I never used node.js , so I
> don't know very well the side part of the javascript world
>
>
> Thanks very much for your help!
> Alessandro
>

Re: frameworks/tools for couchdb development

Posted by Alessandro <de...@gmail.com>.
> Erica is an excellent tool for deploying local couchapps to couchdb:
> https://github.com/benoitc/erica
> Also, If you haven't already see: http://couchapp.org/page/index

I will look at Erica as soon as possibile, it seems ok for my job.
I didn't know the other link, it is interesting.


Another small question: I had many problem rendering html pages in 
javascript, but it seem normal to follow this way with couchdb. Which 
javascript templating library can I use?
Probably It is not a couchdb relevant topic,but I think you all have 
thought at least one time to the problem. Note: I never used node.js , 
so I don't know very well the side part of the javascript world


Thanks very much for your help!
Alessandro

Re: frameworks/tools for couchdb development

Posted by Travis Paul <Tr...@visPaul.me>.
Erica is an excellent tool for deploying local couchapps to couchdb:
https://github.com/benoitc/erica
Also, If you haven't already see: http://couchapp.org/page/index



On Tue, Feb 26, 2013 at 6:29 PM, Alessandro <de...@gmail.com> wrote:

> Hi all,
>   I'd like to use couchdb for a small project and I like to know which
> kind of tools or framework can help me with it.
> For example I gave a look at "kanso", but it seems abandoned since almost
> nine month ago. I found few other tools, but they were older.
>
> I need to write files locally, and test them on my pc before to publish
> the changes on the server.. a very basic job, I think.
>
> Which kind of tools can I use?
>
> Thanks for your advices
>
> Alessandro
>