Boilerplate contains a light weight client and server. No setup required, just make changes in env file and your chat bot is up and running.
- Create a Bluemix account
- Create watson assistant workflow on bluemix
- Provision an instance of Watson Assistant on bluemix
- Create a new conversation workspace
- Install client and server dependencies
- Update the env file with your workspace ID and watson assistance api credentials.
WATSON_ASSISTANT_USERNAME=<WATSON_ASSISTANT_USERNAME>
WATSON_ASSISTANT_PASSWORD=<WATSON_ASSISTANT_PASSWORD>
WATSON_ASSISTANT_WORKSPACE_ID=<WATSON_ASSISTANT_WORKSPACE_ID>
Install server dependencies
npm install
Install client dependencies
cd client
npm install
- Start the server
npm start
- Start the client
cd client && npm start
- Navigate to http://localhost:3000
cd client
npm run build
cd ..
npm start
Navigate to http://localhost:3000