An application that gives personality details based on a given Twitter handle using IBM Watson Personality Insights.
-
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 Personality Insights service instance on IBM Cloud to generate credentials to use the Watson Personality Insights 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>
PERSONALITY_INSIGHTS_USERNAME = <Service credential>
PERSONALITY_INSIGHTS_PASSWORD = <Service credential>
PERSONALITY_INSIGHTS_VERSION_DATE = <Check service documentation for most recent date>
- Install the dependencies your application needs:
npm install
- Start the application locally:
node personalityInsights