Questions tagged [couchapp]

CouchApps are JavaScript and HTML5 applications served directly from CouchDB.

CouchApps are JavaScript and HTML5 applications served directly from CouchDB.

224 questions
1
vote
0 answers

get init issue after extending couchdb with geocouch on ubuntu

The env is ubuntu 12.10. the src version are apache-couchdb-1.2.1 and geocouch-couchdb1.2.x, first try i just put both to the Download folder, but when i execute make in geocouch folder then got below issue…
ryu
  • 651
  • 9
  • 23
1
vote
1 answer

couchDB designDoc development workflow and version control

For development, I want to keep the various components (views, lists, shows) that make up a couchDB design document as separate files alongside my other development code in a dir called couchDB for example. When I am happy with changes I want to use…
johowie
  • 2,475
  • 6
  • 26
  • 42
1
vote
0 answers

Couch DB replication on android device via nodeJs fails

I have set up a couchdb master server , couch db clinet on android tablet and nodeJs for the routing. The tablet is able to get data from master initially without any issue. However when I change the data in master, the replication fails with the…
Nandish A
  • 1,645
  • 5
  • 26
  • 41
1
vote
1 answer

CouchDB: custom error page

Is there a way to customize error pages in CouchDB, particularly in couchapp? When I try to load URL with undefined/misspelled view http://localhost:5984/database/_design/app/_view/sample CouchDB 1.2 just closes the connection: Error 324…
Anthony
  • 12,407
  • 12
  • 64
  • 88
1
vote
1 answer

How to group entries by year and month using CouchDB?

The view function below is used to emit some entries: function(doc) {emit(null,{"date":doc.date,"title":doc.title,"txt":doc.txt});} {"total_rows":7,"offset":0,"rows":[ {"id":"67ebe3755be4edf5c4edf0d96f0023eb","key":null,"value":{"date":"Dec…
user1276919
  • 550
  • 5
  • 25
1
vote
1 answer

Where can i find a list of couchdb apps?

I already know http://www.couchapp.org/page/list-of-couchapps. I can't find a list of kanso made apps or even reupholster apps and i bet there are more. Shouldn't there be a site with all the apps that run on couchdb?
vkefallinos
  • 717
  • 1
  • 9
  • 24
1
vote
0 answers

couchdb Replication of Large Documents via Ajax

I'm working on a couchapp that may have large documents added to it. For example, I'm testing with a 446MB video. User A can request to replicate with user B who may have large files like this. The replication is then initiated from an ajax call. I…
Brad Rhoads
  • 1,828
  • 3
  • 29
  • 52
1
vote
2 answers

How to fetch bodies of multiple revisions of same document Apache CouchDB?

A similar question was asked here Getting full list of revisions on document level using CouchDB-Python?, but what I want to do is also to retrieve the bodies of each revision of the same document in one request. I want to effectively build a…
AnthonyS
  • 2,429
  • 2
  • 24
  • 17
1
vote
2 answers

Adding id and author fields via a update handler in Couchdb

How are people adding extra fields via the update handler in Couchdb ? I'd like to add the author ( I have a validation function to check the user is logged in) and the id added when a new documenter is created via an update handler. The authors…
Adam
  • 55
  • 6
1
vote
1 answer

CouchDB list view error when no key requested

Having trouble with a list function I wrote using CouchApp to take items from a view that are name, followed by a hash list of id and a value to create a CSV file for the user. function(head, req) { // set headers start({ "headers": {…
raistrick
  • 77
  • 4
1
vote
2 answers

Ignore folders in .couchappignore

My CouchApp has the following folder structur, where files inside the app folder are compiled into the _attachments folder: my_couchapp ├── _attachments/ │ ├── app.js │ ├── app-tests.js │ └── index.html ├── app/ │ └── app.js ├──…
pangratz
  • 15,875
  • 7
  • 50
  • 75
1
vote
1 answer

Working with JSON data from CouchDB in Knockoutjs

I am trying to get example code from knockoutjs running with data from my local Couchdb. http://learn.knockoutjs.com/#/?tutorial=loadingsaving I use a view to get my tasks from the db. As Couch returns…
Pnytje
  • 11
  • 1
1
vote
0 answers

Prevent mobile Safari from showing loading indicator while _changes listener is active

The Setup After a page finishes loading, I'm adding a _changes listener to a couchdb longpoll feed (just in case it matters, I'm using this function in the Kanso db module). Once the listener is added, mobile Safari's loading indicator starts…
nrw
  • 819
  • 2
  • 7
  • 22
0
votes
1 answer

How do I show only a user's own documents in CouchDB?

In order to filter a user's own documents from others', I am returning the creator of the document as the key, or part of the key: org.couchdb.user:user1 or [org.couchdb.user:user1, otherkey] Is this the best way to create a "My Documents" page?…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
0
votes
1 answer

How can I fix this CouchDB rewrite handler's infinite loop?

If I don't use a rewrite in my CouchDB app, my static file links break: GET http://127.0.0.1:5984/mythshare-dev/_design/mythshare/_rewrite/static/js/jquery-1.7.1.min.js 404 (Object Not Found) GET…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90