GithubHelp home page GithubHelp logo

kevinrodbe / twitter-realtime-voting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imclab/twitter-realtime-voting

0.0 2.0 0.0 178 KB

A real time voting engine that allows conference attendants to review a talk via Twitter. In Ruby.

License: Apache License 2.0

Ruby 84.56% JavaScript 15.44%

twitter-realtime-voting's Introduction

#Twitter voting

This is a real time voting engine that allow conference attendants to review a talk via Twitter.

This sample code was created for QCon São Paulo 2014.

##Technologies used

  • Twitter Streaming API and tweetstream gem
  • ruby 2.x
  • Sinatra (web dashboard)
  • faye-websocket (Websocket middleware)
  • redis (storage)
  • jQuery and Bootstrap (frontend)

##Installing and running

  1. Clone this repo
  2. Set up your Twitter credentials in config/credentials.yml with your app tokens obtained at apps.twitter.com (see config/credentials.yml.sample)
  3. Set up your config/agenda.yml file with all talks, the hashtag that will trigger a vote for each one and also their attributes (see config/agenda.yml.sample)
  4. Open config/initializer.rb and define:
    • Your Event hashtag (used by Twitter tracker)
    • Which words represent each level of quality (see EVENT_REVIEW_GRADES)
    • If you will be accepting only one vote per user (see ACCEPT_ONLY_UNIQUE_VOTES)
  5. Install and start redis
  6. Run bundle install to set up environment
  7. Run foreman start
  8. Access http://localhost:3000 in your browser
  9. Vote! ex.: "#qconsp #twitterapi #good awesome talk"

Try to vote to a talk while having it's permalink page open.

Have fun!

##Contributions

This is a demo app, so if you are thinking to use in production, please review and test this code properly.

Some features could be added (if you wish):

  • Automatic review detection (without using keyword matching)
  • Optimize the way websockets connections are used (to avoid unnecessary messages)
  • Add a tweet timeline to each talk permalink page with each review (encourage fearless communication)

(2014) Luis Cipriani. This code is under Apache License.

twitter-realtime-voting's People

Contributors

lfcipriani avatar ryankicks avatar

Watchers

 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.