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

how to insert data in couchdb for cross domain

i am using couch db and i want to post data in local host, i want to pass data append to couch db URL without open the couch db my data is save couch db database how can do this process.like i want to save name…
0
votes
1 answer

Storing couchDB views in code repository

I have a ruby/couchdb application with huge *.couch files full of data. What I'd like to somehow import (in mysql world i'd call it db schema, but here it's only views) in order to store them somewhere in the code repository. I need it to avoid…
Sotomajor
  • 1,386
  • 11
  • 15
0
votes
1 answer

Posting database views from CouchApp

I am new to CouchDB and CouchApp and I am trying to make a couchapp that can be called on any couchdb database and present the user with the available fields so that he can choose one and get all the records for that field. It would work kind of…
Raul
  • 13
  • 3
0
votes
3 answers

how to make child of a list become a variable in python

i'm trying to make a web only using couchdb and couchapp... but for some reason i need external process using python.. and now i'm stuck how to handle post variable in python... i'v read this(and it works) and this... but i want it like this : >>>…
Egy Mohammad Erdin
  • 3,402
  • 6
  • 33
  • 57
0
votes
1 answer

Why is my couchapp not displaying on Safari 11.1?

I have a couchapp that displays a graph of my solar hot water system data. It has been working fine on Safari/Chrome/Firefox on Mac/iOS/Android for about 8 years. After updating Safari on my Mac to 11.1, I get the error "This page was reloaded…
chetstone
  • 650
  • 1
  • 9
  • 19
0
votes
1 answer

CouchDB 2.1.1: Internal Server Error

Before installing the CouchApp utility, the Sofa blog app and the sample DB myblogdb together with CouchDB 2.1.1 my CouchDB was working find and I never seeing any Internal Server Error. In the last 2 hours a trojan attached itself as a process to…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
1 answer

Server Side GET

I want to merge a list into a show template on the server side. How would I make a GET request to a list or a view from a show? Do I have to call another library in the show to make a server side call or does couch have a native way to do this. If…
Hatchware
  • 242
  • 2
  • 13
0
votes
1 answer

iteration on couchapp

i had write this on mustache.html on couchapp **{{%IMPLICIT-ITERATOR iterator=i}} {{#example}} hallo {{i}} {{/example}}** with this array { "example": ["alpha","beta","gamma","delta"] } but the result from couchapp is like this hallo…
0
votes
1 answer

is there way add new field/value in couchdb existed document

is there way add new field and its value into existed all couchdb documents, like following I want to add "emailType": "true" into the existed document for emails docType, not sure how can I use updatehandler to achieve this, thank { …
Jamesjin
  • 371
  • 2
  • 6
  • 15
0
votes
2 answers

Changing the "Cache-Control" HTTP header for views in Couchdb

I am using CouchDB for a web app and having problems with IE8 caching the results of a view. From my reading it seems one solution would be to change the "Cache-Control" HTTP header to "no-cache". Right now the CouchDB returns the value…
0
votes
2 answers

Pouchdb how can I putAttachment in a for loop?

I want to add a few attachments, and I can add one successfully, but when in loop , it will just save one image: 5.png and get conflict error: function addNewDoc() { db.get('my0112doc', function(err, doc) { if (err) { …
AdvancingEnemy
  • 382
  • 3
  • 20
0
votes
1 answer

Rewrite URLs in CouchDB/PouchDB-Server

If it is possible, how would I achieve the following URL rewrites using PouchDB Server? At /index.html, display the HTML output of /index/_design/index/_show/index.html. At /my_database/index.html, display…
MattMS
  • 1,106
  • 1
  • 16
  • 32
0
votes
1 answer

Couchdb _design/doc/_update/push not working as object

I want to use an existing Couchdb document, to deep-merge some data on this request Request:: curl -H "Content-Type: application/json" -X POST http://localhost/couch/ddb/_design/data/_update/push2/cap1 -d '{"51" : 5, "65" : 2}' Database…
Pian0_M4n
  • 2,505
  • 31
  • 35
0
votes
1 answer

How to restrict _rev_info in cloudant result json

I am using cloudant for my Project. Every time i update a document and fetch a document, the result JSON comes with { _rev_info : [...] } (contains 500+ rev history). how i restrict & fetch data without _rev_info in cloudant?? { name: "test", …
Gopi
  • 163
  • 1
  • 13
0
votes
1 answer

couchapp: Different rewrites for URLs with and without forward slash

Basically, I want two different rewrite rules for these URLs: http://127.0.0.1:5984/test/_design/myapp/_rewrite/docs/abc http://127.0.0.1:5984/test/_design/myapp/_rewrite/docs/abc/ The first one will be rewritten as…
janinaj
  • 154
  • 1
  • 3
  • 10