Code Monkey home page Code Monkey logo

adminafk-registration's Introduction

Docker Automated build Docker Build Status

The goal of this project is to accept/refuse/ignore registrations who meets requirements on a tournament managed by Toornament. It works with toornament Webhook and registrations are managed instantly (If the Toornament servers can not contact the webhook URL, the servers will try to send the data again during the next 24 hours).

This tool uses :

Requirements

Standard

  • PHP >= 7.0.0

  • Twig >= 2.0

  • CURL 7.51 or newer

  • SQLite3

  • PDO with SQLite drivers

  • Toornament API Developper

Docker

  • Docker

Get your API key

Install

Standard

  • Open your browser and setup the database by going on setup.php

Docker

Start the container docker run -d --restart=always -p 8080:80 lyonesport/adminafk-registration:latest

Usage guide

Informations

  • Toornament status : Display if Toornament API is available
  • API configurations : Display if API configurations are properly configured
  • Webhook : Display if your webhook, subscription are properly configured

Manual check

If you have registrations in pending because you forgot to update Toornament ID on the website before opening registration or Toornament servers are busy, a button will be available to force a manual check of all registrations and will accept/refuse/ignore registrations who meets requirements.

Toornament API configuration

  1. You need to create an application here : https://developer.toornament.com/applications/
  2. Provide Client ID, Client secret and API key to your application
  3. Provide the Toornament ID (shown in the URL)
  4. Provide the Webhook name 30 characters max (one webhook name = one tournament, so you have to choose a different name for each tournament)
  5. Put the full URL to access to webhook.php (Example : http://localhost/webhook.php)

Requirements

If a requirement is blank it will not be checked If all requirements are blanks, participants will matchs directly

  1. Age (If not needed leave blank)
  • Minimum age : The minimum age allowed
  • Match : How many participants must check this condition
  • Custom field : The custom field to check
  1. Country (If not needed leave blank)
  • List of countries : List of allowed countries (ISO 3166-1 alpha-2 format) separate by a comma (Example 1 : FR,DE,BE or Example 2 : FR)
  • Match : How many participants must check this condition
  • Custom field : The custom field to check
  1. If it matchs ?
  • Accept : If the registration match all requirements, the registration will be accepted
  • Ignore : If the registration match all requirements, the registration will stay in pending
  1. If it doesn't match ?
  • Refuse : If the registration doesn't match all requirements, the registration will be refused
  • Ignore : If the registration doesn't match all requirements, the registration will stay in pending

Licence

The code is under CeCILL license.

You can find all details here: https://cecill.info/licences/Licence_CeCILL_V2.1-en.html

Credits

Copyright © Lyon e-Sport, 2019

Contributor(s):

-Ortega Ludovic - [email protected]

adminafk-registration's People

Contributors

m0nsterrr avatar eoswald avatar

Watchers

James Cloos 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.