You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Jeff Charette <io...@yahoo.com> on 2013/02/28 18:26:15 UTC

futon as a couchapp

Just had an idea to make futon a couchapp.  I'm sure many have had this idea.  Is anyone working on it?  Does anyone have any security concerns that this would bring up?

It would just be a database at _futon.

I think it would be easier to tinker with that way and make it crazy easy to learn how to write a couchapp.

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

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

Re: futon as a couchapp

Posted by Simon Metson <si...@cloudant.com>.
Hey,
> > > Not sure what you mean? 
> > 
> > 
> > I mean as a database you can dig into. Not hidden.
Ah, got you. I think it might make sense as a compile/install option, I guess most folk will just want it to work.  We were also going to put it up in a db so people could replicate it down.
> I recently wrote a tiny little grunt plugin (for current grunt 0.4),
> based on the same directory layout convention as couchapp / erica. It
> just compiles a design document and sends it to a database.
> Grunt makes it very easy to built such a tool with 100 lines of code.
> 
> https://github.com/null2/grunt-couch
> 


Yeah I saw that and have been meaning to check it out - if it works for fauxton I was going to switch (there are a couple of bugs with the other couch grunt task that we've fixed but haven't yet been merged in).
Cheers
Simon


Re: futon as a couchapp

Posted by Алекс Zatvornitskiy <a....@gmail.com>.
Hi there!
I've had the same idea Jeff ) except couchapp as a basis.
We're doing a modern CouchDB extension called
https://github.com/datahogs/couch_gears which based on Elixir and Dynamo
framework.

Also we'd like to deliver others most wanted features, check here:
https://gist.github.com/AZatvornitskiy/5013360

If you still interested for that ping me )


On Thu, Feb 28, 2013 at 10:47 PM, Johannes J. Schmidt
<sc...@netzmerk.com>wrote:

> On 02/28/2013 09:26 PM, Jeff Charette wrote:
> >> I recently wrote a tiny little grunt plugin (for current grunt 0.4),
> >> based on the same directory layout convention as couchapp / erica. It
> >> just compiles a design document and sends it to a database.
> >> Grunt makes it very easy to built such a tool with 100 lines of code.
> >>
> >> https://github.com/null2/grunt-couch
> > Nice work, great start.  I would love to see options for minifying when
> pushing to production and maybe some helpers for reading in documents.
> > Like this http://kan.so/docs/Working_with_JSON_data .
> thanks :)
> It's all there!
> The idea is to use other grunt tasks for this, grunt-contrib-concat,
> grunt-contrib-uglify, grunt-contrib-cssmin, grunt-contrib-htmlmin,
> grunt-contrib-jade - the whole stack (grunt-contrib,
> http://gruntjs.com/plugins) to manipulate the source files and then put
> them to a location where they can be compiled into design documents by
> grunt-couch.
> >
> > Also would love to hear peoples thoughts on package management for
> couchapps.  Maybe another thread.  I guess you could use npm, but then how
> do you know if it will work with couch in a couch way.
> >
> > I wish we all could get around one couchapp tool.
> >
> > 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 3:13 PM, "Johannes J. Schmidt" <sc...@netzmerk.com>
> wrote:
> >
> >> On 02/28/2013 07:09 PM, Jeff Charette wrote:
> >>>>> Will it be exposed to the user in futon itself so they can learn
> from it? Hard to see from source.
> >>>> Not sure what you mean?
> >>> I mean as a database you can dig into.  Not hidden.
> >>>
> >>>>> Would be amazing to use couch app itself to generate it or kanso.
> >>>> It's using grunt to build and deploy it (which has a wider user
> community).
> >>> Has anyone done work with grunt to use a dependency manager like kanso?
> >>>
> >>> When I look at grunt I see very little in the way of helpers and
> support from a couchapp perspective.
> >>> https://github.com/elfsternberg/grunt-couchapp
> >> I recently wrote a tiny little grunt plugin (for current grunt 0.4),
> >> based on the same directory layout convention as couchapp / erica. It
> >> just compiles a design document and sends it to a database.
> >> Grunt makes it very easy to built such a tool with 100 lines of code.
> >>
> >> https://github.com/null2/grunt-couch
> >>
> >> Cheers
> >> Johannes
> >>> 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 12:45 PM, Simon Metson <si...@cloudant.com> wrote:
> >>>
> >>>> Hi Jeff,
> >>>>
> >>>>> Will it be exposed to the user in futon itself so they can learn
> from it? Hard to see from source.
> >>>> Not sure what you mean?
> >>>>> Would be amazing to use couch app itself to generate it or kanso.
> >>>> It's using grunt to build and deploy it (which has a wider user
> community).
> >>>> Cheers
> >>>> Simon
> >>>>
> >
>
>

Re: futon as a couchapp

Posted by "Johannes J. Schmidt" <sc...@netzmerk.com>.
On 02/28/2013 09:26 PM, Jeff Charette wrote:
>> I recently wrote a tiny little grunt plugin (for current grunt 0.4),
>> based on the same directory layout convention as couchapp / erica. It
>> just compiles a design document and sends it to a database.
>> Grunt makes it very easy to built such a tool with 100 lines of code.
>>
>> https://github.com/null2/grunt-couch
> Nice work, great start.  I would love to see options for minifying when pushing to production and maybe some helpers for reading in documents.
> Like this http://kan.so/docs/Working_with_JSON_data .
thanks :)
It's all there!
The idea is to use other grunt tasks for this, grunt-contrib-concat,
grunt-contrib-uglify, grunt-contrib-cssmin, grunt-contrib-htmlmin,
grunt-contrib-jade - the whole stack (grunt-contrib,
http://gruntjs.com/plugins) to manipulate the source files and then put
them to a location where they can be compiled into design documents by
grunt-couch.
>
> Also would love to hear peoples thoughts on package management for couchapps.  Maybe another thread.  I guess you could use npm, but then how do you know if it will work with couch in a couch way.
>
> I wish we all could get around one couchapp tool.
>
> 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 3:13 PM, "Johannes J. Schmidt" <sc...@netzmerk.com> wrote:
>
>> On 02/28/2013 07:09 PM, Jeff Charette wrote:
>>>>> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
>>>> Not sure what you mean? 
>>> I mean as a database you can dig into.  Not hidden.
>>>
>>>>> Would be amazing to use couch app itself to generate it or kanso.
>>>> It's using grunt to build and deploy it (which has a wider user community).
>>> Has anyone done work with grunt to use a dependency manager like kanso? 
>>>
>>> When I look at grunt I see very little in the way of helpers and support from a couchapp perspective.
>>> https://github.com/elfsternberg/grunt-couchapp
>> I recently wrote a tiny little grunt plugin (for current grunt 0.4),
>> based on the same directory layout convention as couchapp / erica. It
>> just compiles a design document and sends it to a database.
>> Grunt makes it very easy to built such a tool with 100 lines of code.
>>
>> https://github.com/null2/grunt-couch
>>
>> Cheers
>> Johannes
>>> 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 12:45 PM, Simon Metson <si...@cloudant.com> wrote:
>>>
>>>> Hi Jeff,
>>>>
>>>>> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
>>>> Not sure what you mean? 
>>>>> Would be amazing to use couch app itself to generate it or kanso.
>>>> It's using grunt to build and deploy it (which has a wider user community).
>>>> Cheers
>>>> Simon
>>>>
>


Re: futon as a couchapp

Posted by Jeff Charette <io...@yahoo.com>.
> I recently wrote a tiny little grunt plugin (for current grunt 0.4),
> based on the same directory layout convention as couchapp / erica. It
> just compiles a design document and sends it to a database.
> Grunt makes it very easy to built such a tool with 100 lines of code.
> 
> https://github.com/null2/grunt-couch

Nice work, great start.  I would love to see options for minifying when pushing to production and maybe some helpers for reading in documents.
Like this http://kan.so/docs/Working_with_JSON_data .

Also would love to hear peoples thoughts on package management for couchapps.  Maybe another thread.  I guess you could use npm, but then how do you know if it will work with couch in a couch way.

I wish we all could get around one couchapp tool.

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 3:13 PM, "Johannes J. Schmidt" <sc...@netzmerk.com> wrote:

> On 02/28/2013 07:09 PM, Jeff Charette wrote:
>>>> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
>>> Not sure what you mean? 
>> I mean as a database you can dig into.  Not hidden.
>> 
>>>> Would be amazing to use couch app itself to generate it or kanso.
>>> It's using grunt to build and deploy it (which has a wider user community).
>> Has anyone done work with grunt to use a dependency manager like kanso? 
>> 
>> When I look at grunt I see very little in the way of helpers and support from a couchapp perspective.
>> https://github.com/elfsternberg/grunt-couchapp
> I recently wrote a tiny little grunt plugin (for current grunt 0.4),
> based on the same directory layout convention as couchapp / erica. It
> just compiles a design document and sends it to a database.
> Grunt makes it very easy to built such a tool with 100 lines of code.
> 
> https://github.com/null2/grunt-couch
> 
> Cheers
> Johannes
>> 
>> 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 12:45 PM, Simon Metson <si...@cloudant.com> wrote:
>> 
>>> Hi Jeff,
>>> 
>>>> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
>>> Not sure what you mean? 
>>>> Would be amazing to use couch app itself to generate it or kanso.
>>> It's using grunt to build and deploy it (which has a wider user community).
>>> Cheers
>>> Simon
>>> 
>> 
> 


Re: futon as a couchapp

Posted by "Johannes J. Schmidt" <sc...@netzmerk.com>.
On 02/28/2013 07:09 PM, Jeff Charette wrote:
>>> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
>> Not sure what you mean? 
> I mean as a database you can dig into.  Not hidden.
>
>>> Would be amazing to use couch app itself to generate it or kanso.
>> It's using grunt to build and deploy it (which has a wider user community).
> Has anyone done work with grunt to use a dependency manager like kanso? 
>
> When I look at grunt I see very little in the way of helpers and support from a couchapp perspective.
> https://github.com/elfsternberg/grunt-couchapp
I recently wrote a tiny little grunt plugin (for current grunt 0.4),
based on the same directory layout convention as couchapp / erica. It
just compiles a design document and sends it to a database.
Grunt makes it very easy to built such a tool with 100 lines of code.

https://github.com/null2/grunt-couch

Cheers
Johannes
>
> 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 12:45 PM, Simon Metson <si...@cloudant.com> wrote:
>
>> Hi Jeff,
>>
>>> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
>> Not sure what you mean? 
>>> Would be amazing to use couch app itself to generate it or kanso.
>> It's using grunt to build and deploy it (which has a wider user community).
>> Cheers
>> Simon
>>
>


Re: futon as a couchapp

Posted by Jeff Charette <io...@yahoo.com>.
>> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
> Not sure what you mean? 
I mean as a database you can dig into.  Not hidden.

>> Would be amazing to use couch app itself to generate it or kanso.
> It's using grunt to build and deploy it (which has a wider user community).

Has anyone done work with grunt to use a dependency manager like kanso? 

When I look at grunt I see very little in the way of helpers and support from a couchapp perspective.
https://github.com/elfsternberg/grunt-couchapp

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 12:45 PM, Simon Metson <si...@cloudant.com> wrote:

> Hi Jeff,
> 
>> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
> Not sure what you mean? 
>> Would be amazing to use couch app itself to generate it or kanso.
> 
> It's using grunt to build and deploy it (which has a wider user community).
> Cheers
> Simon
> 


Re: futon as a couchapp

Posted by Simon Metson <si...@cloudant.com>.
Hi Jeff,

> Will it be exposed to the user in futon itself so they can learn from it? Hard to see from source.
Not sure what you mean? 
> Would be amazing to use couch app itself to generate it or kanso.

It's using grunt to build and deploy it (which has a wider user community).
Cheers
Simon


Re: futon as a couchapp

Posted by Jeff Charette <io...@yahoo.com>.
> Futon is currently being rewritten, and one deployment option is as a
> couchapp. See:
> 
> https://github.com/apache/couchdb/tree/fauxton
> https://github.com/apache/couchdb/tree/fauxton/src/fauxton

Will it be exposed to the user in futon itself so they can learn from it?  Hard to see from source.

Would be amazing to use couch app itself to generate it or kanso.

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 12:30 PM, Ryan Ramage <ry...@gmail.com> wrote:

> Futon is currently being rewritten, and one deployment option is as a
> couchapp. See:
> 
> https://github.com/apache/couchdb/tree/fauxton
> https://github.com/apache/couchdb/tree/fauxton/src/fauxton
> 
> 
> 
> 
> On Thu, Feb 28, 2013 at 10:26 AM, Jeff Charette <io...@yahoo.com> wrote:
> 
>> Just had an idea to make futon a couchapp.  I'm sure many have had this
>> idea.  Is anyone working on it?  Does anyone have any security concerns
>> that this would bring up?
>> 
>> It would just be a database at _futon.
>> 
>> I think it would be easier to tinker with that way and make it crazy easy
>> to learn how to write a couchapp.
>> 
>> Jeff Charette | Principal
>> We Are Charette
>> web / identity / packaging
>> 
>> m  415.298.2707
>> w  wearecharette.com
>> e   jeffrey@wearecharette.com


Re: futon as a couchapp

Posted by Ryan Ramage <ry...@gmail.com>.
Futon is currently being rewritten, and one deployment option is as a
couchapp. See:

https://github.com/apache/couchdb/tree/fauxton
https://github.com/apache/couchdb/tree/fauxton/src/fauxton




On Thu, Feb 28, 2013 at 10:26 AM, Jeff Charette <io...@yahoo.com> wrote:

> Just had an idea to make futon a couchapp.  I'm sure many have had this
> idea.  Is anyone working on it?  Does anyone have any security concerns
> that this would bring up?
>
> It would just be a database at _futon.
>
> I think it would be easier to tinker with that way and make it crazy easy
> to learn how to write a couchapp.
>
> Jeff Charette | Principal
> We Are Charette
> web / identity / packaging
>
> m  415.298.2707
> w  wearecharette.com
> e   jeffrey@wearecharette.com