Beginner Question.
Below is an example given on the Cradle CouchDB documentation: https://github.com/cloudhead/cradle
What is http://living-room.couch?
What is 5984?
new(cradle.Connection)('http://living-room.couch', 5984, {
cache: true,
raw: false
});
I'm trying to get info from my couchdb:
url: subdomain.mywebsite.com
node port: 12345
couchdb port: 67891
I've tried different ways to connect using the above code, but I get the below error.
What is the right way to connect?
17 May 09:50:57 - [nodemon] restarting due to changes...
17 May 09:50:57 - [nodemon] ./test_couch.js
17 May 09:50:57 - [nodemon] starting node
Server running somewhere
request starting...
request starting...
node.js:181
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:602:18)
at IOWatcher.onWritable [as callback] (net.js:186:12)
17 May 09:51:05 - [nodemon] app crashed - waiting for file change before starting...