Giter VIP home page Giter VIP logo

pheme's Introduction

Pheme

Birds of a feather tweet together.

Installation

  1. Install/update homebrew (http://mxcl.github.io/homebrew/).

  2. Install/update yajl: brew install yajl

  3. Install node.js: brew install node

  4. Install required node.js packages npm install

  5. Sign up for a Twitter API key, and copy the appropriate secrets into secrets.json (see secrets.json.example for an example). Our API secrets are availible upon request.

  6. Start Pheme node server.js

  7. Visit http://localhost:3000 in a browser

Since we rely on Twitter's live streaming API, we require the use of a server. https://piazza.com/class#spring2013/cs171/511

If you have trouble running the above code, we can provide a server to connect to that performs the required API translation and authentication.

Code Overview

The server code lives in the lib folder. It is organized into a streaming JSON parser, a "replay" agent (which replays pre-recorded tweet streams), and a live "twitter" agent (which connects to Twitter's realtime stream).

The client code lives in the public folder. It is organized into a clustering engine and the UI of the visualization.

Libraries

We use the Google Maps API (for maps), jQuery (for easy DOM manipulation), Twitter Bootstrap (for a couple UI elements), Handlebars (for templating), and socket.io (for live streaming data), all of which are hosted on external CDNs.

Data

We use Twitter's "statuses/filter" streaming API, documentation for which can be found here:

https://dev.twitter.com/docs/api/1.1/post/statuses/filter

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.