npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-watson-content-hub

v0.2.5

Published

Node-RED nodes for Watson Content Hub integration

Downloads

24

Readme

Node-RED integration with IBM Watson Content Hub

Build Status npm version NPM Downloads

This module provides a set of Node-RED nodes which integrate with IBM Watson Content Hub. The main goal of these nodes is to make it even simpler to integrate with IBM Watson Content Hub, as all API calls are nicely wrapped by the given nodes.

Pre-requisites

There is no known pre-requisite, but this module was mainly tested on Node-RED v0.16.2 and Node.js v4.2.1

Installing

Run the following command in your Node-RED user directory (typically ~/.node-red):

npm install node-red-contrib-watson-content-hub

Restart node-red and do a refresh in the browser editor UI, to see the newly installed nodes.

Getting started

This section describes a very basic scenario how you can make sure the IBM Watson Content Hub integration with Node-RED is working. We assume the extension is installed as described earlier.

  1. Go to the node-red editor UI (ie http://localhost:1880/)

  2. Add an inject input node, a debug output node and a User node from the Watson_Content_Hub supportedActions

  3. Wire the nodes as outlined on the picture

    Sample flow

  4. Do a double-click on the Users node to enter the configuration dialog

    Config dialog

  5. Click on the edit icon on the Connection entry in the configuration dialog and add in your IBM ID credentials

    Config credentials

    NOTE It is recommended to add a name whrioch makes it easier to identify the configuration

  6. Select the Add button to submit your input

  7. For the purpose of the getting started scenario we leave the Operation at the default (Retrieve the current user) and submit the configuration by hitting the Done button.

  8. Finally select the deploy button in the upper right corner of the editor UI

  9. Now we can test the flow by hitting the input trigger and we will find the User node result in the debug section of the editor UI.

Features

This version provides Node-RED nodes for all API endpoints in IBM Watson Content Hub. As this is a very early version, there is not a full coverage of all REST calls provided by IBM Watson Content Hub, but basic CRUD scenarios are implemented.

To get a better understanding how to work with the Node-RED nodes have a look at the examples folder

Adding IBM Watson Content Hub nodes to your IBM Bluemix Node-RED boilerplate

If you want to make use of this integration you have to run a Node-RED process somewhere. One very nice way to host this would be to use IBM Bluemix. This description provides you with the required steps on how you can add the IBM Watson Content Hub nodes into your existing Node-RED boilerplate.

  1. Navigate to your IBM Bluemix Dashboard and select the Node-RED boilerplate app

  2. On the overview page look for a widget called Continuous delivery. Assuming your toolchain integration is not yet setup click on the Enable button and follow the steps in the wizard.

  3. Now you should have a new GitHub repository which reflects your Node-RED boilerplate application.

  4. Update the package.json and add the following entry to the dependencies section

"node-red-contrib-watson-content-hub":"0.x"

NOTE: The position inside of the dependencies section does not matter, just pay attention to set the colon at the right position

  1. Commit your change and wait. Bluemix now gets informed about the change and your Node-RED boilerplate app gets restarted. This process may take up to 5 minutes, even if the application in your IBM Bluemix Dashboard tells you it is started already.

ATTENTION Make sure your Node-RED application has a username and password set, because otherwise your IBM Watson Content Hub account is open to everybody.