GithubHelp home page GithubHelp logo

ryankicks / ruby-app-tweetmap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xdevplatform/ruby-app-tweetmap

0.0 0.0 0.0 3.05 MB

Simple Ruby app to read Twitter stream and map geo-tweets on a Google Map.

License: MIT License

JavaScript 36.24% Ruby 39.99% CoffeeScript 0.95% CSS 22.82%

ruby-app-tweetmap's Introduction

sample-ruby-app

Sample Ruby App that consumes and from the Twitter Streaming API, displaying the data on a map and streaming the tweets in a pauseable timeline.

Demo

Check out a live demo of the app here: http://twitterdevdemo.com/map

Censor Stream Query Param

Append ?censor=true to attempt filtering out obscene tweets from the stream (no guarantees!).

Requirements

To run this app, you will need the following dependencies:

  • Ruby >= 2.0.0
  • Bundler
  • RVM (optional)

Getting Started

To configure and run this example, do the following:

  • Go to https://apps.twitter.com/ to generate access tokens for your application, any application built on the twitter API requires authentication tokens.

  • Clone this repo or download the code and unzip

  • cd sample-ruby-app

  • Create a file config/twitter.yml and supply your access tokens in this file. You could copy config/example.twitter.yml and simply fill it in with your access tokens:

cp config/example.twitter.yml config/twitter.yml

    development:
      #API key/secret
      consumer_key: API_KEY
      consumer_secret: API_SECRET
      #Access token/secret
      access_token: ACCESS_TOKEN
      access_token_secret: ACCESS_TOKEN_SECRET
  • If on OSX and using homebrew, you may need brew link autoconf if it has not been linked already

  • bundle install

  • bundle exec ruby app.rb [OPTIONS]

  • Open http://localhost:8181/map

Options

    Available options:
        -s, --server SERVER              Server to run
            --host HOST                  Host to run on
        -p, --port PORT                  Server port
        -h, --help                       Show this message

ruby-app-tweetmap's People

Contributors

ryankicks avatar noonhub 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.