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
0
votes
1 answer

Erica CouchDB rewrites

When I upload documents using Erica into CouchDB it removes my rewrites. Is there a way to configure my rewrites in Erica? If so I've been unable to figure it out, any help would be great!
skinneejoe
  • 3,921
  • 5
  • 30
  • 45
0
votes
1 answer

Error building Erica on Windows

I'm trying to play around with a CouchApp, for which erica is apparently the tool to use. Building things from source on Windows is always a nightmare, but I think I've almost got it. I installed the dependencies of Erlang and rebar, then ran…
orlade
  • 2,060
  • 4
  • 24
  • 35
0
votes
1 answer

What is the most efficient approach to get posts that were not voted by an user, on CouchBase?

I have a bucket with posts on the following format: {title:"foo", description:"bar", votes: {John:1, Leo:-1, ...}} I will be continuously querying for posts that have less than N votes and that weren't voted by a specific user yet. The problem…
MaiaVictor
  • 51,090
  • 44
  • 144
  • 286
0
votes
1 answer

How to get a couchapp to serve a file with no extension (implied .html)

I have couchapp that is working fine. This works: http://domain.com/file.html This does not: http://domain.com/file I want it to understand that if there is no extension, it should try the .html extension. I'm not sure if this is a _rewrite…
Ross R
  • 8,853
  • 7
  • 28
  • 27
0
votes
0 answers

Error while saving a lot of data to CouchDB

I am using couchapp with CouchDB to store information about connections between nodes. I am trying to save an array of json data. If the number of items in the array is less than 2000, everything works fine. Unfortunately, bigger amounts of data…
0
votes
1 answer

Formatting couchdb-lucene results with a couchdb list

Situation... I have a simple couchapp that lists out emails that are stored in the couch database, these emails are queried with a simple view and then piped through a list to give me a pretty table that I can click on the emails to view them. That…
Ryan Parrish
  • 387
  • 2
  • 9
0
votes
1 answer

Why can't my couchapp generate new application?

I installed couchapp using $ env ARCHFLAGS="-arch i386 -arch x86_64" sudo pip install couchapp and there were no errors. But then if I want to create an application, $ couchapp generate helloworld $ Nothing happens...no new folder created, and no…
goldfrapp04
  • 2,326
  • 7
  • 34
  • 46
0
votes
1 answer

couchDB: download results of list query as attachment

I have a list that produces a csv file. Querying that is simple, and if it is queryied from a link, it downloads the response as an attachment (provided the correct headers are sent). However, I need to POST a potentially large amount of dynamically…
ddouglascarr
  • 1,334
  • 3
  • 14
  • 23
0
votes
1 answer

Duplicate several json documents between _attachments and _design doc

I have a bunch of json-schema documents in my _design doc which are used for validation in validate_doc_update. For my api, I also want to make these documents available to clients as attachments to the _design doc, so I want to have couchapp…
MikeB
  • 928
  • 9
  • 24
0
votes
1 answer

Where to put custom validation function inside CouchApp folder structure?

Where in CouchApp folder structure should I put validation function that it will be properly pushed with couchapp push command?
PrimosK
  • 13,848
  • 10
  • 60
  • 78
0
votes
0 answers

multiple data of same entity within each document

I am creating a document for a client, where it requires for each particular customer to have multiple timestamp of entry whenever they visit. For example, everytime the customer visits the store, it stores the time and date, and the purpose of the…
topgun
  • 2,463
  • 8
  • 31
  • 46
0
votes
1 answer

How to check if the field is unique in CouchDB?

I have a database of documents like that: { "_id" : "37686aeb8d65e77665af55e69801a62c", "ip" : "192.168.1.1", "mac" : "01:23:45:67:89:ab" } And I have a design doc with update handler. How can I check if a new document have an unique…
Anthony
  • 12,407
  • 12
  • 64
  • 88
0
votes
1 answer

CouchDB: master/detail _view or _list

Is there a way in CouchDB to make a master/detail _view or _list? From the other hand it looks like _view is only able to render a master and _list is only able to render a list of detail. So the answer could be proofed by a link that confirms that…
Anthony
  • 12,407
  • 12
  • 64
  • 88
0
votes
1 answer

Backbone-couchdb connector error: url property or function must be specified

I just started working with backbone.js and couchdb using a simple 'counter' application to learn the ropes. A version that uses localstorage can be found here: demo fiddle. It is a simple application that displays a counter that can be incremented…
Johan B
  • 2,461
  • 14
  • 16
0
votes
1 answer

SaaS, central database, database per user, or combination?

Problem at hand is as follows: SaaS to keep maintenance records 95% of data would be specific to each user i.e. no need to be accessed by other users 5% of data shared (and contributed by all users), like parts that are used in maintenance SaaS to…
Davorin Ruševljan
  • 4,353
  • 21
  • 27
1 2 3
14
15