Search This Blog

Showing posts with label ibm watson discovery nodejs. Show all posts
Showing posts with label ibm watson discovery nodejs. Show all posts

Friday, April 14, 2017

How to use Watson Discovery service ?


In this tutorial I will show you how to use Watson Discovery service locally and how to push an app to Blue mix using the cloud foundry command line tools( Node JS version)


image

Prerequisites:
  • Node JS
  • Visual Code
  • Blue mix account (Setup free account for 30 days)
  • Cloud foundry CLI

Step 1 Clone Repo or download as zip from Github
https://github.com/watson-developer-cloud/discovery-nodejs.git

Step 2 Go to that folder rename .env.example to .env ( It should have place holders for username and password etc)
This file need to be updated with the discovery service username and password, it also needs a discovery environment and the collection id( Watson news collection in our case)