Node.js Starter Overview
The Node.js Starter demonstrates a simple, reusable Node.js web application based on the Express framework.
Run the app locally
-
Clone this repo
-
cd into the nodebot directory
-
Run
npm install
to install the app's dependencies -
Make a copy of the config/credentials-template.json file and call it credentials.json
-
From your Bluemix Watson Conversation Service make a copy of the config credentials
-
Paste the Watson Config credentials into your credentials.json file
-
From your Watson Conversation Workspace copy the workspace id
-
Write that ID into the bot.js file:
var conversationWorkspace = "y o u r i d g o e s h e r e";
-
Run
node app
to start the app -
Access the running app in a browser at the url indicated at the node command line