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.
Ensure that VirtualBox, Vagrant, and Ansible are installed.
-
git clone git@github.com:AmsterdamPHP/meetup-raffle-machine.git --recursive
-
run
vagrant up
-
create config/parameters.yml (get your API key from meetup.com)
meetup_group: amsterdamphp meetup_api_key: YOUR_MEETUP_API_KEY
-
(from within the machine)
composer install
to install composer dependencies -
(from within the machine)
compass compile
to compile styles -
add the following to your /etc/hosts file
10.10.10.10 app.local
All done! Now you can access the application at http://app.local/.
-
Get code
-
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
-
Install Dependencies
gem update --system gem install compass gem install susy
-
Compile stylesheets
compass compile
-
Create config/parameters.yml
meetup_group: amsterdamphp meetup_api_key: YOUR_MEETUP_API_KEY
- Open the app index page to be presented with a list of meetups.
- Click on a meetup.
- Press [space] or [page down] to start raffles.
The page down key allows us to use most presentation remotes as well.