Giter VIP home page Giter VIP logo

poll's Introduction

Poll

Poll is a Ruby on Rails applications for conducting Polls simply and in real-time. Poll requires no registration to create or enter polls and the results page can be loaded while results are loaded in as they occour.

Here are a few screensots from https://poll.lab.io

image

image

image

Installing

$ git clone [email protected]:adambutler/poll.git
$ cd poll
$ bundle install
$ rake db:create
$ rake db:migrate
$ cp .env.example .env

Modify the .env file to match with your Pusher application credentials or setup Slanger (perhaps with docker-slanger)

Contributing

Contributions are welcome, please follow GitHub Flow

poll's People

Contributors

adambutler avatar 9034725985 avatar

Stargazers

Xabier De Leon avatar Alice Lia Stapleton avatar Arty Stable avatar  avatar Random techie avatar 庞玺桐 avatar  avatar  avatar Muhammed Kılıç avatar  avatar l0d0v1c avatar Yassine Afnisse avatar Eduardo Nakatani avatar  avatar Gerardo Lisboa avatar GilSang Jo avatar Sumod Rajan George avatar Karvin  avatar 张华粮 avatar  avatar Eric Liu avatar Oliver Staudt avatar  avatar Dario Castañé avatar Yumi avatar Vikas Rajput avatar Matt "Mookie" Thayer avatar Masanori Ogino avatar Carl Wingårdh avatar  avatar SpcOpFor avatar Élisson Michael  avatar Fabrizzio Soares avatar RAPHAËL avatar f3bruary avatar Bontus avatar Mehmet Fatih Okuyan avatar Tell Moitas avatar  avatar ~creme avatar stdin avatar Freddy González avatar fzyzcjy avatar Glenn Goffin avatar  avatar Pascal Küng avatar Luke Boelling avatar Manuel Prado avatar Indrit Qoku avatar Shah Zaib avatar liuxiaoliu avatar Nodreame avatar Victor Augusto Borges Dias de Almeida avatar Ujesh Patel avatar YK avatar RIKU avatar Francesc Elies avatar 거윈 | Win avatar Jordan Arsenault avatar Hiroolt avatar  avatar Thomas Darimont avatar Marcos Sader avatar Manik Magar avatar Mucahit Tutuncu avatar  avatar Craig Lockwood avatar Leander Melms avatar James Spittal avatar Yakut Özcan avatar Stephane Moreau avatar Christopher Moore avatar  avatar huangwenwei.com avatar Pulkit Agarwal avatar Lucas Ocon avatar  avatar Adhitya R. K. Putra avatar rumblefrog avatar Vasil Dhima avatar Dmitry Ledentsov avatar Chi-Hsuan Li avatar Anton Maminov avatar  avatar Frederick Wagner avatar Stan Williams  avatar Sina Neda avatar  avatar Gaurav Varma avatar 山崎泰助 avatar Kim Yu Ng avatar Juh avatar Kei avatar  avatar  avatar Daniel avatar Dmitry avatar Yasin Arıbuğa avatar  avatar Abdullah Barrak avatar

Watchers

James Cloos avatar Kuchaev Ilya avatar  avatar Tyr Mactire avatar Don Sur avatar  avatar fukushi avatar Carlos De Smedt avatar  avatar Yasin Arıbuğa avatar  avatar maulin_n avatar  avatar

poll's Issues

Mouseover position for results isn't accurate in (at least) Firefox

Just tried out the example poll, and noticed the results have a mouseover capability.

For Firefox 31 on Fedora, the positioning for the mouse cursor to get the desired popup isn't correct. Some of the segments don't show at all when moused over, some show the result text only when in other location
(not hovering above the segment).

I would do screenshots to illustrate the problem, but Fedora doesn't want to include the mouse cursor in them. Duh. 😦

Option Filtering / Attributes

It would be nice if attributes could be added and used to filter through the options. By this I mean that a user viewing the results could do so. Perhaps they could also save their attributes and filter views with a new URL (results only), one that would link back to the original poll URL.

Badges are muh to small

When hovering over the piechart the badges (or what they are called) are much to small to read.

screenshot from 2014-10-17 10 26 07

Firefox 32 on Fedora using i3wm.

Embed code

Wouldn't it be nice to be able to embed polls and results onto a webpage?

How to start?

It seems that is not working to me.

Any help?

sudo rails server -b xx.xx.xx.xx -e production
=> Booting WEBrick
=> Rails 4.1.6 application starting in production on http://xx.xx.xx.xx:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/1.9.1/uri/generic.rb:213:in `initialize': the scheme http does not accept registry part: :@ (or bad hostname?) (URI::InvalidURIError)
    from /usr/lib/ruby/1.9.1/uri/http.rb:84:in `initialize'
    from /usr/lib/ruby/1.9.1/uri/common.rb:214:in `new'
    from /usr/lib/ruby/1.9.1/uri/common.rb:214:in `parse'
    from /usr/lib/ruby/1.9.1/uri/common.rb:747:in `parse'
    from /var/lib/gems/1.9.1/gems/pusher-0.14.1/lib/pusher/client.rb:53:in `url='
    from /home/ubuntu/poll/config/initializers/pusher.rb:3:in `<top (required)>'
    from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
    from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `block in load'
    from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
    from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:648:in `block in load_config_initializer'
    from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/notifications.rb:161:in `instrument'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:647:in `load_config_initializer'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:611:in `each'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:611:in `block in <class:Engine>'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `instance_exec'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `run'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /usr/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
    from /usr/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
    from /usr/lib/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
    from /usr/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
    from /usr/lib/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:44:in `each'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:44:in `tsort_each_child'
    from /usr/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
    from /usr/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
    from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each'
    from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
    from /usr/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:54:in `run_initializers'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/application.rb:300:in `initialize!'
    from /home/ubuntu/poll/config/environment.rb:5:in `<top (required)>'
    from /home/ubuntu/poll/config.ru:3:in `require'
    from /home/ubuntu/poll/config.ru:3:in `block in <main>'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
    from /home/ubuntu/poll/config.ru:in `new'
    from /home/ubuntu/poll/config.ru:in `<main>'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/server.rb:50:in `app'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
    from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/server.rb:69:in `start'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:81:in `block in server'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `tap'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `server'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
    from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands.rb:17:in `<top (required)>'
    from /home/ubuntu/poll/bin/rails:8:in `require'
    from /home/ubuntu/poll/bin/rails:8:in `<top (required)>'
    from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
    from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
    from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
    from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
    from /var/lib/gems/1.9.1/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
    from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
    from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
    from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/ubuntu/poll/bin/spring:16:in `<top (required)>'
    from bin/rails:3:in `load'
    from bin/rails:3:in `<main>'

thans

Add SMS based voting

SMS voting could allow question authors to list questions that are less likely to be voted on more than once by a user.

SMS voting would disable the web based form and allow only one vote per phone number per question. If a user texts a vote more than once then their vote is updated as per the website behaviour.

Demo does not work

If I visit https://poll.lab.io/ and enter a question and submit, it says:

We're sorry, but something went wrong.
If you are the application owner check the logs for more information.

image

M

A

Provide Dockerfile for a self-contained poll-server

A Dockerfile which creates a docker image containing a running poll-server would have several benefits:

  • easy setup (especially for those who don't know Ruby/gem/rake/MySql etc.)
  • reproducible setup for different environments
  • encapsulation of services
  • avoids 'pollution' of a working system in case you have to uninstall poll

I tried to setup one based on Ubuntu 15.4 but failed to setup database connection. I don't want to install poll together with Ruby and MySql on my desktop system

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.