This project allows you to get Twitter updates which could give you ideas for a new app or startup with only 70 lines of Javascript, and an HTML file to display the tweets from the Twitter stream.
Since we're retrieving data from a stream, we may be storing information for multiple tweets at a time so we'll be using MongoDB.
While this is not meant for production, this would be a good base to expand further to work on apps which involve analyzing data from Tweets. It will also be a good intro for those interested to learn about Twit and Socket.io.
- Express
- MongoDB
- Twit
- Socket.io
-
This project is not recommended to be in production
-
Prerequsites for this project: a. NodeJS b. MongoDB c. Twitter Developer API keys - Get your Twitter API credentials here
-
Before running the app:
- Run npm update to get the packages from the package.json file.
- Ensure that you have MongoDB running on your system so the app will store the Tweets correctly.
- Build the database "twitterfeed" and the collection named "tweets" with the db.js file with the command node db.js.