This is a simple application using the MEAN stack (MongoDB, ExpressJS, AngularJS, Node.js) to serve as a foundation to help you start building more complex Twitter sentiment analysis projects.
Tweets are filtered by keyword and geolocation from the Twitter Streaming API, then classified for positive or negative sentiment. Analyzed tweets are stored by the server app to a MongoDB collection. Client-side, if the accessing browser is HTML5 compliant, tweets are cached to localStorage.
- Clone or download the repository
- Install npm modules:
npm install
- Install bower dependencies
bower install
- Enter your Twitter app keys and auth token in
config/twitter.js
- [Optional] Edit the URL to your MongoDB server in
config/db.js
- Start up the server:
node server.js
- View in a browser at http://localhost:8080
- Make tweet filters modifiable in UI (keywords, location)
- Display statistics on positive vs. negative
- Only collects tweets in english since stop word list is for english
- To modify the keyword and location filters, see
app/classifier.js
If you have any questions or requests, email dev@jamba.ca.