A high-level, caching, CouchDB client for Node.js
Questions tagged [cradle]
71 questions
1
vote
1 answer
IntelliJ plugin: maven, gradle and travis-ci
Currently, my built structure for a plugin in is a bit messy: I'm using the normal IDEA project file to build the plugin locally. When I push it to the repo and travis-ci is building it, it uses the maven pom.xml because for travis to work, it…

halirutan
- 4,281
- 18
- 44
1
vote
1 answer
How to create a couchdb update handler through cradle?
I'm relatively new to CouchDB, and am using cradle to interface with it in node.js. I'm trying to include a "count" field in the document, and create an update handler that increments that, so I don't have to do a GET and then a PUT.
Currently, I'm…

Peter Somers
- 111
- 4
1
vote
1 answer
Serving file with CouchDB attachment?
Im using Express. i can't figure out how to send an image file to client in a way that it will be displayed to HTML tag
. I'm using Cradle getAttachment function to communicate with Couchdb…


DennyHiu
- 4,861
- 8
- 48
- 80
1
vote
1 answer
Asynchrously load NPM module
I'm trying to create a module that connects to my Database (couchDB using Cradle). In the end, the module exports the 'db' variable.
Here is the code:
var cradle = require('cradle'),
config = require('./config.js');
var db =…

streetlight
- 5,968
- 13
- 62
- 101
1
vote
1 answer
Nodejs+ cradle, scoope of variable on callback
I'm wondering if you can help me with my problem. my Code is :
test = function (_mappedReq, _callback, _req, _res, _session){
_mappedReq.created_at = new Date();
nbConnSaveCallback =0;
connectDB().database("users").save(_mappedReq,…

Bruno Dlb
- 11
- 1
1
vote
2 answers
Node.JS cradle and couchDB assistance
I am a noob with Node.JS.
I am using CouchDB and Cradle.
In couchDB I have a database named 'test' and inside it I have a document named 'exercise'.
The document has 2 fields: "FullName" and "Age".
The code in order to save the data is as…

Avraham Cohen
- 57
- 5
1
vote
1 answer
Using variables in Cradle Merge (Node.js and CouchDB)
I'm trying to write a function that loops and changes a field in multiple documents at the same time. The only issue is that when I'm passing a parameter value, the cradle merge seems to actually pass a field with the parameter name instead of the…

streetlight
- 5,968
- 13
- 62
- 101
1
vote
0 answers
RailwayJS & Cradle not working error
I am trying to use the cradle adapter for couchdb with railwayjs but it does not work.
This is a base install, and i have already installed cradle.
database.json
{ "development":
{ "driver": "cradle"
}
, "test":
{ "driver": "memory"
}
,…

888
- 181
- 1
- 1
- 6
1
vote
1 answer
Node.js works with CouchDB and Backbone.js, How json is being served?
I am trying to build a test app for learning Node.js. I came from wordpress background and Apache has setup most of backend logics for me. But now, I have to build my own. I have a question about how to serve JSON files from server side to client…

MMA
- 525
- 2
- 10
- 19
0
votes
2 answers
Trouble with cradle on windows
I run npm install -g cradle and get the output:
npm http GET https://registry.npmjs.org/cradle
.... lots of more GET's .....
cradle@0.6.3 C:\Users\...\npm\node_modules\cradle
├── vargs@0.1.0
├── request@2.9.153
└── follow@0.7.1
Everything seems to…

Soroush Hakami
- 5,226
- 15
- 66
- 99
0
votes
1 answer
Network Simulation Cradle with Linux Stack 2.6.35
I am struggling to integrate the network stack of Linux Kernel 2.6.35 with the Network Simulation Cradle (http://www.wand.net.nz/~stj2/nsc/).
Has anyone done it before ? If yes please reply.
I am getting an error saying : fatal error: when writing…

gaganbm
- 2,663
- 3
- 24
- 36
0
votes
1 answer
How i can add fab in the drawer header?
How i can create header like this?
I have tried already but not able to develop same as shown in above picture.Below is the image which i develop.
when i try to develop it looks like this image
kindly tell me how to make design like this.Below is my…
0
votes
1 answer
NodeJS: installed cradle 5.5 but example crashes with error
var cradle = require('cradle');
var db = new(cradle.Connection)().database('starwars');
db.get('vader', function (err, doc) {
doc.name;
assert.equal(doc.force, 'dark');
});
db.save('skywalker', {
force: 'light',
name: 'Luke…

KJW
- 15,035
- 47
- 137
- 243
0
votes
1 answer
TLS certificate failure, php to gmail
bin/cradle auth-verify-mail auth_id=1 auth_slug=taku.haider1987@gmail.com auth_updated=123456 host=localhost
PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL…
0
votes
1 answer
Order results in Cradle
How can I order results from a couchdb database, using cradle for node.js? From the docs it seems that adding a descending=true parameter to my url should work. My current code is as follows:
this.db.view('articles/all',function(error, result) {
…

jfoucher
- 2,251
- 2
- 21
- 29