The repo contains code demonstrating the Watson Conversation service
- Clone this repo
- Create a Watson Conversation Service on Bluemix
- Create a new conversation workspace by importing `conversation_workspace.json' form the project root
- 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>
Install client and server dependencies
npm install
cd client
npm install
- Start the server
npm start
- Start the client
cd client && npm start
- Navigate to http://localhost:3004
cd client
npm run build
cd ..
npm start
- Navigate to http://localhost:3004
Follow the first 3 steps in the "Build / Run (Production)" section above, then run:
cf push nationalparks