Skip to content

How kind are you on twitter? Try this react application to analyze the sentiment of your most recent tweet and send the result to your phone

Notifications You must be signed in to change notification settings

nexmo-community/tweet-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analyze Twitter Sentiments with Text Analytics API (and a spot of React)

This repository holds the code for Lauren's excellent blog post Discover Your Twitter Positivity Score with React

Get the code and configure it

  • clone this repo to your own machine
  • run npm install in root of project && within the /client folder
  • rename .env-example files to .env in both the root & /client folder
  • add a private.key file to hold your Nexmo key in root of project
  • Fill in the .env files with your personal credentials:

In tweet-sentiment-analysis/.env:

API_KEY=*******      
API_SECRET=*******    
APPLICATION_ID=*******    
NEXMO_NUMBER=*******    

CONSUMER_KEY=*******     
CONSUMER_SECRET=*******     
ACCESS_TOKEN_KEY=*******    
ACCESS_TOKEN_SECRET=*******      

In tweet-sentiment-analysis/private.key:

-----BEGIN PRIVATE KEY-----     
XYZ123****xxx123XYZ***    
-----END PRIVATE KEY-----       

In tweet-sentiment-analysis/client/.env:

REACT_APP_RAPIDAPI_KEY=*******         

See the app in action

Run both server and client simultaneously by running npm run dev
Open localhost:3000 to see the app and analyze your twitter positivity (or lack of)

About

How kind are you on twitter? Try this react application to analyze the sentiment of your most recent tweet and send the result to your phone

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published