https://github.com/nexmo-community/tweet-sentiment-analysis
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
https://github.com/nexmo-community/tweet-sentiment-analysis
azure express nexmo react sentiment-analysis text-analytics twitter twitter-api
Last synced: 6 months ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/nexmo-community/tweet-sentiment-analysis
- Owner: nexmo-community
- Created: 2019-06-19T15:51:13.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T00:11:18.000Z (7 months ago)
- Last Synced: 2025-03-13T01:22:37.430Z (7 months ago)
- Topics: azure, express, nexmo, react, sentiment-analysis, text-analytics, twitter, twitter-api
- Language: JavaScript
- Homepage:
- Size: 5.23 MB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.nexmo.com/blog/2019/07/01/discover-your-twitters-positivity-score-with-react-dr)
### 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`:
```javascript
API_KEY=*******
API_SECRET=*******
APPLICATION_ID=*******
NEXMO_NUMBER=*******CONSUMER_KEY=*******
CONSUMER_SECRET=*******
ACCESS_TOKEN_KEY=*******
ACCESS_TOKEN_SECRET=*******
```In `tweet-sentiment-analysis/private.key`:
```javascript
-----BEGIN PRIVATE KEY-----
XYZ123****xxx123XYZ***
-----END PRIVATE KEY-----
```In `tweet-sentiment-analysis/client/.env`:
```javascript
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)