This is a Next.js project bootstrapped with create-next-app
.
TEA is a webapp, built with NextJS, that allows you to see the emotion analysis (Joy, Sadness, Anger, Fear, Disgust) of tweets from a user's timeline, select tags, or a single tweet.
GET /api/tweets/[statusId]
Parameter | Type | Description |
---|---|---|
statusId |
string |
Required. Id of tweet to fetch |
GET /api/tweets/userTimeline/[username]
Parameter | Type | Description |
---|---|---|
username |
string |
Required. |
GET /api/tweets/byTag/[tag]
Parameter | Type | Description |
---|---|---|
tag |
string |
Required. |
POST /api/ibmWatson
Credentials | Type | Description |
---|---|---|
apikey |
string |
Required. Your API key |
serviceUrl |
string |
Required. NLU URL |
Takes two numbers and returns the sum.
To run this project, you will need to add the following environment variables to your .env.local file
TWITER_API_TOKEN
TWITTER_API_URL = https://api.twitter.com/2
IBM_WATSON_API_KEY
IBM_WATSON_URL
Clone the project
git clone https://github.com/itbeginswithi/Twitter-Emotion-Analysis.git
Go to the project directory
cd Twitter-Emotion-Analysis
Install dependencies
npm install
Start the server
npm run dev