This application allows team members to review the coffee on offer in the Abletech kitchen.
- Fork this repo
- Clone into a local directory
- Change to your new local directory
bundle install
rails server
To vote, visit your organisation's Slack channel. To upvote a coffee, use the command /coffee good
or /coffee +1
. To downvote a coffee use the command /coffee bad
or /coffee -1
. Your vote will be recorded and the dashboard will be updated. Every time a new batch of coffee is in the kitchen, a notification will be sent to the requested Slack Channel.
git checkout develop
git pull origin develop
rails s
git checkout master
git pull origin master
git push heroku master
heroku config:set ADMIN_USERNAME=admin
heroku config:set ADMIN_PASSWORD=coffee
heroku config:set SLACK_URL=<PUT SLACK URL HERE>
In order to setup Slack integration, you will need to setup the slash commands (i.e. /coffee) and setup an incoming webhook for the application to send out notifications.
- Visit https://api.slack.com and setup an application.
- Enable Incoming Webhooks and get the webhook URL for the channel you want the notifications to be sent to (this will be the value for the environment variable for the SLACK_URL above).
- Under Slash Commands create a new command
/coffee
with the request URLyour.heroku.domain/votes