iwatakeshi / twitter-streaming-api-example

Example with Twitter streaming API, Node.js and React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

We need Node, npm, bower and MongoDB for this to work. Then in the project directory:

$ npm install
$ bower install

Mongodb must be installed and started, otherwise you will get a connection error

Twitter stream

If you go to http://localhost:3000/fight you will get the Twitter stream

Oauth.js for Facebook and Twitter

var ids = {
    facebook: {
        clientID: "",
        clientSecret: "",
        callbackURL: "http://localhost:3000/auth/facebook/callback"
    },
    twitter: {
        consumerKey: "",
        consumerSecret: "",
        callbackURL: "http://localhost:3000/auth/twitter/callback",
        accessToken: "",
        accessTokenSecret: ""
    }
}

module.exports = ids

About

Example with Twitter streaming API, Node.js and React


Languages

Language:JavaScript 97.1%Language:CSS 2.9%