loopback-connector-couchbase5
v0.0.2
Published
LoopBack Couchbase 5.x Connector
Downloads
75
Maintainers
Readme
loopback-connector-couchbase5
This is a Couchbase connector node module for Loopback with loopback-datasource-juggler. Without N1QL for now.
How to use
Install
npm install loopback-connector-couchbase5 --save
Config
# datasources.json
{
"testDs": {
"name": "testDs",
"connector": "couchbase5",
"cluster": {
"url": "couchbase://localhost",
"username": "username",
"password": "password",
"options": {}
},
"bucket": {
"name": "test_bucket"
}
}
}
Dev
export COUCHBASE="couchbase5"
export COUCHBASE_USER="Administrator"
export COUCHBASE_PASS="password"
./dockers/start-couchbase.sh
Test
precheck: couchbase server is runing with two buckets named test_bucket
, test_ping
and enabled its flush feature.
run: npm test