Only 4 steps needed to build and run your twitter streaming app.
Prerequisites:
- Should have Node JS installed
- Should have a Twitter app account
Step 1: Checkout the project https://github.com/sarojrout/Twitter-Streaming.git
Step 2: Go inside project ./Twitter-Streaming and type npm install to install node module dependencies for this app.
Step 3: Update app.js by providing correct consumer_key, consumer_secret, access_token_key, access_token_secret.
Step 4: Start the app by executing node app.js by going inside the project folder /Twitter-Streaming
Now launch the app by hitting the URL http://127.0.0.1:3000 in the browser.
To know how to use twitter stream API to get the tweets, please look at the app.js inside the project.
How does it work? Explained in detail
Two important things i have used here to develop this app.
1. twitter streaming API
2. socket.io to read the twits and emit into the browser
For source code, visit the GITHUB page: twitter-streaming-app
