A Real-Time Twitter Stream with Node.js and React.js
React is amazing on the client side, but it’s ability to be rendered on the server side makes it truly special. This is because React uses a virtual DOM instead of the real one, and allows us to render our components to markup. It should listen to the Twitter streaming API and save new tweets as they come in. On save, an event should be emitted to the client side that will update the views. The page should render server side initially, and the client side should take it from there. We should use infinity scroll pagination to load blocks of 10 tweets at a time. New unread tweets should have a notification bar that will prompt the user to view them. some of the tools used besides React: Express – A node.js web application framework Handlebars – A templating language we are going to write our layout templates in Browserify – A dependency bundler that will allow us to use CommonJS syntax Mongoose – A mongoDB object modeling library Socket.io – Real time bidirectional event based communication nTwitter – Node.js Twitter API library