Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit d66e423

Browse files
authored
Merge pull request #48 from IBM/package_refresh_note
Package refresh note
2 parents 3261fd6 + d712e81 commit d66e423

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Build Status](https://travis-ci.org/IBM/openwhisk-data-processing-cloudant.svg?branch=master)](https://travis-ci.org/IBM/openwhisk-data-processing-cloudant)
22

33
# Cloudant data processing with OpenWhisk
4-
This project shows the power of serverless, event-driven architectures to execute code in response to database change events from Cloudant, thus extracting highly scalable and highly efficient analytics from both technologies.
4+
This project shows how serverless, event-driven architectures can be used to execute code in response to database change events from Cloudant, thus extracting scalable and efficient analytics from both technologies.
55

66
This application shows you two OpenWhisk actions (written in JavaScript) that write and read text and image data to Cloudant, a hosted Apache CouchDB service. The scenario demonstrates how actions can work with data services and execute logic in response to database changes.
77

@@ -37,6 +37,8 @@ Log into Bluemix, provision a [Cloudant database instance](https://console.ng.bl
3737

3838
Copy `template.local.env` to a new file named `local.env` and update the `CLOUDANT_INSTANCE`, `CLOUDANT_DATABASE`, `CLOUDANT_USERNAME`, and `CLOUDANT_PASSWORD` for your instance.
3939

40+
> **Note**: The Cloudant service credentials and connectivity details can be automatically bound to the OpenWhisk context with `wsk package refresh`, as they are in the [simpler version of this app](https://github.com/IBM/openwhisk-cloudant-trigger). However, since we are writing more than a simple JSON object back to Cloudant, we will use the Cloudant NPM client directly with the credentials, rather than through the Cloudant packaged write action.
41+
4042
# 2. Create OpenWhisk actions, triggers, and rules
4143
`deploy.sh` is a convenience script reads the environment variables from `local.env` and creates the OpenWhisk actions, triggers, and rules on your behalf. Later you will run these commands yourself.
4244

‎template.local.env‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Cloudant database credentials
2-
CLOUDANT_INSTANCE=""
2+
CLOUDANT_INSTANCE="openwhisk-cloudant"
33
CLOUDANT_USERNAME=""
44
CLOUDANT_PASSWORD=""
55

66
# Cloudant databases
7-
CLOUDANT_DATABASE=""
7+
CLOUDANT_DATABASE="cats"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /