Giter Site home page Giter Site logo

dunglas / slack-secret-santa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jolicode/secret-santa

1.0 2.0 0.0 198 KB

:santa: The code behind Slack Secret Santa

Home Page: https://slack-secret-santa.herokuapp.com/

License: MIT License

PHP 55.94% HTML 35.77% ApacheConf 8.29%

slack-secret-santa's Introduction

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 2.8 and his new Micro Kernel;
  • Hosting is provided by Heroku;
  • Session are stored in Heroku Redis servers;
  • Frontend is built with bootstrap, obviously (any help welcome from designer ^^);
  • For now, the calls to "ChatPostMessage" Slack API are done procedurally, this may be hard on the API / PHP / Heroku for big Secret Santa... Let us know!
  • 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 require:

  • a Redis server
  • PHP 5.6+

As we rely on env variables, we cannot use server:run. From web/:

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

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)

slack-secret-santa's People

Contributors

damienalexandre avatar pyrech avatar ternel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.