Gathering detailed insights and metrics for ember-deploy-couchbase
Gathering detailed insights and metrics for ember-deploy-couchbase
Gathering detailed insights and metrics for ember-deploy-couchbase
Gathering detailed insights and metrics for ember-deploy-couchbase
npm install ember-deploy-couchbase
Typescript
Module System
Min. Node Version
Node Version
NPM Version
57.5
Supply Chain
89.2
Quality
67.8
Maintenance
50
Vulnerability
97.3
License
JavaScript (88.11%)
HTML (11.89%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
10 Commits
3 Forks
11 Watchers
3 Branches
6 Contributors
Updated on May 13, 2016
Latest Version
0.1.1
Package Id
ember-deploy-couchbase@0.1.1
Size
4.94 kB
NPM Version
2.5.1
Node Version
0.12.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
ember-cli-deploy is an index-adapter for Couchbase. This ember-cli addon lets you deploy your ember-cli app's index.html to a couchbase server.
First you must configure the addon using config/deploy.json
. Here's
a sample config (note its missing configuration for an asset-adapter).
module.exports = {
development: {
buildEnv: 'development',
store: {
type: 'couchbase',
host: 'couchbase://development.couchbase.server.local',
bucketName: '<mybucketname>'
},
},
production: {
store: {
type: 'couchbase',
host: 'couchbase://production.couchbase.server.com',
bucketName: '<mybucketname>'
},
}
}
When you do ember deploy:index -e production
, it will
<project-name>:<sha>
as a doc { content: "<html>...." }
.The aforementioned manifest is a doc stored in couchbase keyed by
<project-name>:index.html:manifest
. It is of the form
1{ 2 current: "<project-name>:<sha>", 3 revisions: ["<project-name>:<sha>", "<project-name>:<sha>", "<project-name>:<sha>"] 4}
Currently you can override the manifest's revisions size, but it
defaults to 10
. What that means is that it keeps track of the last
10 deploys.
Here's a simple ExpressJS + Couchbase Node.js SDK example. Note it
uses GET parameter index_key
to reference which <sha>
version of
index.html to display.
var express = require("express"),
couchbase = require("couchbase"),
cbConfig = { host: 'couchbase://127.0.0.1', bucketName: 'default' },
cbClient = new couchbase.Cluster(cbConfig.host),
cbBucket = cbClient.openBucket(cbConfig.bucketName, cbConfig.password, function(err) {
if (err) {
console.log("Error connecting to bucket!");
} else {
console.log("Connected to bucket!");
}
});
var app = express();
app.get("/", function(req, res) {
// Send back index.html
var projectName = "my-express-project";
var indexKey = req.query.index_key;
var manifestKey = projectName + ":index.html:manifest";
cbBucket.get(manifestKey, function(err, manifestDoc) {
if (err) {
console.log(manifestKey + " not found!");
res.status(200).send("BRB");
} else {
var indexDocKey = null;
if (indexKey) {
indexDocKey = projectName + ":" + indexKey;
} else {
indexDocKey = manifestDoc.value.current;
}
console.log("Serving version `" + indexDocKey + "`");
cbBucket.get(indexDocKey, function(err, indexDoc) {
if (err) {
console.log(indexDocKey + " not found!");
res.status(200).send("Check yo self, before you wreck yoself!");
} else {
res.status(200).send(indexDoc.value.content);
}
});
}
});
});
app.listen(3000);
This has been tested with Node.js v0.10.25, Couchbase v3.0.1, ExpressJS v4.12.3
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 2/10 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More