Fetch tweets of a given “#HashTag” every few minutes and store only the newly found tweets in a database. User can see the tweets for a given “#HashTag”, which auto refreshes via socket.io events.
- Clone this repository
cd
to repository root directory- Execute
npm install
andbower install
- Create a file
config/main.json
and specify below configuration{ "twitter": { "consumer_key" : "", "consumer_secret" : "", "access_token" : "", "access_token_secret": "" }, "debug" : false, "db" :{ "base_url": "mongodb://localhost/" } }
- Execute
grunt
command - Execute
npm start
command - Access
http://127.0.0.1:3000/
Demo.
- https://dev.twitter.com/rest/public/search
- https://dev.twitter.com/rest/public/timelines
- https://dev.twitter.com/overview/api/cursoring
- https://community.risingstack.com/node-js-twitter-bot-tutorial/
- http://stackoverflow.com/questions/25685227/how-to-display-user-profile-image-in-circle
- http://2ality.com/2012/07/large-integers.html
- http://getbootstrap.com/components/#media-default
- https://limonte.github.io/sweetalert2/
- https://github.com/sroze/ngInfiniteScroll