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 [email protected]: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
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
composer install npm install
-
Compile assets
./node_modules/.bin/gulp
-
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.