Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
couchview: command not found
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
adam  
View profile  
 More options Feb 2, 10:48 pm
From: adam <adam.mad...@redcoded.com>
Date: Mon, 2 Feb 2009 19:48:36 -0800 (PST)
Local: Mon, Feb 2 2009 10:48 pm
Subject: couchview: command not found
I've noticed it was used in the peepcode screencast and a jchris blog
entry from 6 months ago. But I cant seem to locate the utility on my
system.

http://jchris.mfdz.com/posts/115

I'm running v0.12.6 of the jchris-couchrest gem. Is there another step
for installing the utility which i missed?

cheers,
Adam


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jai-Gouk Kim  
View profile  
 More options Feb 2, 10:52 pm
From: Jai-Gouk Kim <jaig...@gmail.com>
Date: Mon, 2 Feb 2009 19:52:22 -0800 (PST)
Local: Mon, Feb 2 2009 10:52 pm
Subject: Re: couchview: command not found
Hi. I was in the same situation 2 days before. So I asked jchris via
twitter.
couchview has been replaced by couchapp. :)
But the example app made by topfunky still works.

Thanks,
-- Jai-Gouk Kim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
adam  
View profile  
 More options Feb 3, 1:09 am
From: adam <adam.mad...@redcoded.com>
Date: Mon, 2 Feb 2009 22:09:45 -0800 (PST)
Local: Tues, Feb 3 2009 1:09 am
Subject: Re: couchview: command not found
thanks for very the reply and heads up on couchapp.

I've installed this as a gem and have tested out the generate and push
commands.

This new couchapp gem is for making standalone couchdb apps with
jquery and HTML. Where as the old couchview was handy utility for
generating and pushing views.

An example generate below. Generates views along with a lot of extras.

couchapp generate db/views posts
Generating a new CouchApp in /application/db/views
/application/db/views/app-template
/application/db/views/app-template/_attachments
/application/db/views/app-template/_attachments/index.html
/application/db/views/app-template/_attachments/style
/application/db/views/app-template/_attachments/style/main.css
/application/db/views/app-template/foo
/application/db/views/app-template/foo/bar.txt
/application/db/views/app-template/lib
/application/db/views/app-template/lib/helpers
/application/db/views/app-template/lib/helpers/math.js
/application/db/views/app-template/lib/helpers/template.js
/application/db/views/app-template/lib/templates
/application/db/views/app-template/lib/templates/example.html
/application/db/views/app-template/lists
/application/db/views/app-template/lists/feed.js
/application/db/views/app-template/shows
/application/db/views/app-template/shows/example-show.js
/application/db/views/app-template/views
/application/db/views/app-template/views/example
/application/db/views/app-template/views/example/map.js
/application/db/views/app-template/views/example/reduce.js
/application/db/views/by_tag-map.js
/application/db/views/by_tag-reduce.js
/application/db/views/by_title-map.js
/application/db/views/by_updated_at-map.js
/application/db/views/by_visited_on-map.js
/application/db/views/lib.js

The push seems to behave different also:

With the topfunky couchdb app:

couchapp push db/views notes_topfunky_development

> This returns nothing but does push the views to the DB as _design/views. To get the correct view names i went deeper into the directory.

couchapp push db/views/notes notes_topfunky_development
 > This resulted in a document with view names (by_tag-reduce etc)
being listed as attributes with the associated js content as the
value.

Would it be better to use the view structure from the peepcode instead
of this new couchapp generate and use the couchdb api to push?

thanks,
Adam

On Feb 2, 7:52 pm, Jai-Gouk Kim <jaig...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Anderson  
View profile  
 More options Feb 3, 11:49 am
From: Chris Anderson <jch...@apache.org>
Date: Tue, 3 Feb 2009 08:49:16 -0800
Local: Tues, Feb 3 2009 11:49 am
Subject: Re: couchview: command not found

On Mon, Feb 2, 2009 at 10:09 PM, adam <adam.mad...@redcoded.com> wrote:

> Would it be better to use the view structure from the peepcode instead
> of this new couchapp generate and use the couchdb api to push?

Couchapp is equivalent to couchview, except for a few details about
how it expects to see documents stored on the filesystem.

If I recall correctly, couchview takes something like this

views/test-map.js
views/test-reduce.js

and pushes it to the views member of a design doc, which you'd specify
on the command line, with a default of falling back to a directory
name. Couchview does that job just fine, but it is no generalized to
handle the other functions that can be stored in a design doc.

the CouchApp script takes a filesystem and pushes it transparently to
a design doc, so the on-disk layout it expects is a little different:

views/test/map.js
views/test/reduce.js
validate_doc_update.js
shows/post.js
lists/index.js
_attachments/images/example.png
_attachments/foo/bar.html

you are free to leave any of that out (so if you only care about views
then you should be able to use it just fine.)

currently the python version of couchapp also has the ability to
"clone" from a url. I'm working on getting the ruby version back up to
speed, but for now you might be happiest installing the python
version.

http://github.com/jchris/couchapp/tree/master

Chris

--
Chris Anderson
http://jchris.mfdz.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
adam  
View profile  
 More options Feb 3, 5:26 pm
From: adam <adam.mad...@redcoded.com>
Date: Tue, 3 Feb 2009 14:26:08 -0800 (PST)
Local: Tues, Feb 3 2009 5:26 pm
Subject: Re: couchview: command not found
Thanks for your reply Chris. Using this folder format I was able to
push views to the db.

I've written a quick post on couchapp replacing couchview for future
googlers.
http://blog.redcoded.com/post/75223790/couchapp-replaces-couchview

cheers,
Adam

On Feb 3, 8:49 am, Chris Anderson <jch...@apache.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
candlerb  
View profile  
 More options Feb 4, 4:47 am
From: candlerb <b.cand...@pobox.com>
Date: Wed, 4 Feb 2009 01:47:35 -0800 (PST)
Local: Wed, Feb 4 2009 4:47 am
Subject: Re: couchview: command not found
However, I see that lib/couchrest/commands/{generate,push}.rb still
exist in the couchrest gems

(couchrest-0.12.4 and jchris-couchrest-0.12.6)

Just an oversight?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Anderson  
View profile  
 More options Feb 4, 2:41 pm
From: Chris Anderson <jch...@apache.org>
Date: Wed, 4 Feb 2009 11:41:10 -0800
Local: Wed, Feb 4 2009 2:41 pm
Subject: Re: couchview: command not found

On Wed, Feb 4, 2009 at 1:47 AM, candlerb <b.cand...@pobox.com> wrote:

> However, I see that lib/couchrest/commands/{generate,push}.rb still
> exist in the couchrest gems

> (couchrest-0.12.4 and jchris-couchrest-0.12.6)

> Just an oversight?

Yep

--
Chris Anderson
http://jchris.mfdz.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google