Simple express app that streams in a sample of live tweets, these tweets are then run through a 3rd party sentiment analysis library and given a score Implemented using Node.js and Express.
Add a file named ".env" that contains your twitter API keys in the root directory. It should be in the following format:
TWITTER_CONSUMER_KEY=xxxx
TWITTER_SECRET_KEY=xxxx
TWITTER_ACCESS_TOKEN=xxxx
TWITTER_ACCESS_KEY=xxxx
Install dependencies:
npm install
Start server and you should see incoming tweets and their sentiment analysis printing to the console.
npm start