This application is a simple microservice that will accept a text string and pass it on to IBM Watson's tone analysis service. To use this application you will need to have IBM Bluemix and a Watson Tone Analysis Service setup and enabled.
You will need to have the enviornment variables set with the credentials you get from the IBM Watson Bluemix interface.
You will need to have an env.list file that will define your credentials from BlueMix for IBM Watson in the following format
BLUEMIXUSER=<your username> BLUEMIXPASS=<your password> BLUEMIXTONEURL=https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version=2016-05-19
If you want to take advantage of Redis to cache content so that you do not send duplicate content multiple times to Bluemix for processing set the SIDECAR environment variable to the host of your Redis instance. Your Redis instance must be on the default port.
docker run --env-file env.list -p 5000:5000 allengeer/toneanalysis:latest