πŸŽ… The code behind Slack Secret Santa
HTML PHP CSS ApacheConf
Latest commit 0299ac5 Nov 30, 2016 @pyrech pyrech committed on GitHub Merge pull request #29 from jolicode/feature/big-santa-warning
Add a warning for big secret santa
Permalink
Failed to load latest commit information.
Resources
bin Add some controller, try to make the session working but... 🍺 Nov 10, 2015
etc
src Merge pull request #29 from jolicode/feature/big-santa-warning Nov 30, 2016
tests Display user count Nov 30, 2016
web
.gitignore Plug Symfony, Twig, OAuth and improve everthing Nov 11, 2015
.php_cs
.slugignore Add some controller, try to make the session working but... 🍺 Nov 10, 2015
.travis.yml Setup travis 🚨 Nov 17, 2015
LICENSE
Procfile Update the bin directory for heroku Nov 12, 2015
README.md
composer.json πŸ’Š Update all the deps, switch to Symfony 3.1 from 2.8Beta Oct 23, 2016
composer.lock πŸ’Š Update all the deps, switch to Symfony 3.1 from 2.8Beta Oct 23, 2016
phpunit.xml.dist Create Rudolph, the only business logic πŸ’₯ Nov 10, 2015

README.md

Slack Secret Santa app

Just go to https://slack-secret-santa.herokuapp.com/ and have fun.

Code source is under MIT License.

  • This application is powered by Symfony 3 and its Micro Kernel;
  • Hosting is provided by Heroku;
  • Session are stored in Heroku Redis servers;
  • Built with β™₯ by @pyrech and @damienalexandre.

Install, run and deploy

  • Download and install the Heroku Toolbelt
  • If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
  • Give your heroku details to Damien to be able to deploy
$ heroku login
$ heroku git:remote -a slack-secret-santa
$ heroku plugins:install heroku-redis
$ git push heroku master

The app requires:

  • a Redis server
  • PHP 5.6+

As we rely on env variables, we cannot use server:run. Run:

cd web/
SLACK_CLIENT_SECRET=TOTO SLACK_CLIENT_ID=TOTO php -d variables_order=EGPCS -S 127.0.0.1:8000 ../etc/router.php
open http://127.0.0.1:8000/

Variables are:

  • SLACK_CLIENT_SECRET: Application secret from Slack;
  • SLACK_CLIENT_ID: Application id from Slack;
  • REDIS_URL: The full redis connexion url (default redis://localhost:6379)