/meetup-raffle-machine

A Raffle machine that integrates into Meetup.com for raffling amongst people in the room.

Primary LanguageJavaScriptMIT LicenseMIT

AmsterdamPHP - Meetup.com Raffler

This application enables us to raffle off stuff to our meetup attendees. It uses the Meetup.com API to get all check ins, and then uses the Random.org API to randomly select winners.

Installation

Install into a virtual machine. (Linux and OSX users only)

Ensure that VirtualBox, Vagrant, and Ansible are installed.

You can optionally install the plugin vagrant-hostmanager, so you don't need to do any manual configuration on your machine:

```
$ vagrant plugin install vagrant-hostmanager
```
  1. git clone git@github.com:AmsterdamPHP/meetup-raffle-machine.git --recursive

  2. run vagrant up

  3. create config/parameters.yml (get your API key from meetup.com)

    meetup_group:   amsterdamphp
    meetup_api_key: YOUR_MEETUP_API_KEY
    
  4. (from within the machine) composer install to install composer dependencies

  5. (from within the machine) compass compile to compile styles

  6. add the following to your /etc/hosts file (only if you didn't installed vagrant-hostmanager)

    10.10.10.10 app.local
    

All done! Now you can access the application at http://app.local/.

Install directly onto your host machine.

  1. Get code

  2. Give permissions

    sudo chmod -Rf +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" cache logs
    sudo chmod -Rf +a "<apache user> allow delete,write,append,file_inherit,directory_inherit" cache logs
    
  3. Install Dependencies

    gem update --system
    gem install compass
    gem install susy
    
  4. Compile stylesheets

    compass compile
    
  5. Create config/parameters.yml

    meetup_group:   amsterdamphp
    meetup_api_key: YOUR_MEETUP_API_KEY
    

How to use it

  1. Open the app index page to be presented with a list of meetups.
  2. Click on a meetup.
  3. Press [space] or [page down] to start raffles.

The page down key allows us to use most presentation remotes as well.