Giter VIP home page Giter VIP logo

meteor-twitter-stream's Introduction

Meteor Twitter streaming

With Meteor you can write really cool apps in a few minutes. In this example I'm going to give you a live Twitter feed using the streaming API.

Installation

You need Meteor, Meteorite, Node.js and npm in order to make this example work. Then execute the following command to install its dependencies: mrt install

And afterwards you can run the example using: mrt

Make sure you change the file private/twitter.json. You have to register a Twitter application and paste the keys in this file.

Tutorial

This example is being used in my tutorial. Make sure to check it out.

Frameworks

A few frameworks are being used in this example. Below you can find a listing of them and the reason why I picked those.

Meteor

Meteor is one of a kind, it's the only platform based upon Node.js that integrates both front-end and back-end, in short: it's a full stack JavaScript platform. With Meteor you can create really cool apps in just a matter of time. For example, this code example contains only 50 lines of HTML and 70 lines of JavaScript.

Twitter

I'm using the Twitter package that you can find in the npm repository to use the Twitter streaming API in our app.

Moment.js

Moment.js is probably the best date and time manipulation library for JavaScript. In this case I'm using it to format the timestamp available with each tweet.

Underscore.js

The best utility belt for JavaScript, that's how you could call Underscore.js. It provides a lot of tools that make the life of a JavaScript developer much easier. In this case it's being used to find a specific object inside an array, but Meteor also uses it behind the screens because it's just simply the best.

Semantic UI

UI libraries like Twitter Bootstrap are totally hot today. I'm personally more a fan of Semantic UI because I like their naming convention and it has great extra components like the feed component that I use for this app.

Meteor streams

Meteor's architecture is entirely driven based upon their collections that can be persisted into MongoDB. If you don't need the persistence, you should take a look at the Meteor streams package. I'm using it to stream the tweets to the client.

meteor-twitter-stream's People

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.