Sample deployment, tracking Node.js packages developed by members of (https://github.com/ibm-cds-labs)
$ git clone https://github.com/ibm-cds-labs/npmjs-download-stats
$ cd npmjs-download-stats
$ cf create-service cloudantNoSQLDB Lite npmjs-cloudant
$ cf push
Download and install the code and its dependencies
$ git clone https://github.com/ibm-cds-labs/npmjs-download-stats
$ cd npmjs-download-stats
$ npm install
$ cf create-service cloudantNoSQLDB Lite npmjs-cloudant
$ cf create-service-key npmjs-cloudant Credentials-1
$ cf service-key npmjs-cloudant Credentials-1
If you use a service instance name other than
npmjs-cloudantset environment variableCOUCH_INSTANCE_NAME.
- Copy file
vcap_services_template.jsontovcap_services.json. - In
vcap_services.jsonreplace theTODOplaceholders with your Cloudant instance information.
$ cf push