nationalparks-conversation

The repo contains code demonstrating the Watson Conversation service

Prequisities

  1. Clone this repo
  2. Create a Watson Conversation Service on Bluemix
  3. Create a new conversation workspace by importing `conversation_workspace.json' form the project root
  4. Create a .env file in the project root

e.g.

APP_ID=parks-conversation
PORT=3004
LOG_LEVEL=debug
SESSION_SECRET=test

WATSON_CONVERSATION_API_ROOT=https://gateway.watsonplatform.net/conversation/api
WATSON_CONVERSATION_VERSION=v1
WATSON_CONVERSATION_VERSION_DATE=2016-07-11
WATSON_CONVERSATION_USERNAME=<USERNAME>
WATSON_CONVERSATION_PASSWORD=<PASSWORD>
WATSON_CONVERSATION_WORKSPACE_ID=<WORKSPACE>

Setup

Install client and server dependencies

Server

  • npm install

Client

  • cd client
  • npm install

Build / Run (Development)

Build / Run (Production)

Deploy to Bluemix

Follow the first 3 steps in the "Build / Run (Production)" section above, then run:

  • cf push nationalparks