A Social Listening application that checks tone of tweets based on a certain Twitter handle
-
You need to have Node.js installed. You can download and install Node.js here
-
You need to create a Twitter application to generate credentials to consume Twitter API. You can do so here
-
You need to create a Tone Analyzer service instance on IBM Cloud to generate credentials to use the Watson Tone Analyzer API. There's a short tutorial here
-
Clone this repository.
-
Create a
.env
file in the root directory. The.env
file will look something like the following:
TWITTER_CONSUMER_KEY = <Twitter Consumer Key>
TWITTER_CONSUMER_SECRET = <Twitter Consumer Secret>
TWITTER_ACCESS_TOKEN = <Twitter Access Token>
TWITTER_ACCESS_TOKEN_SECRET = <Twitter Access Token Secret>
TONE_ANALYZER_USERNAME = <Service credential>
TONE_ANALYZER_PASSWORD = <Service credential>
TONE_ANALYZER_VERSION_DATE = <Check service documentation for most recent date>
- Install the dependencies your application needs:
npm install
- Start the application locally:
node toneAnalyzer