USA Rugby Statistics system
This system, originally developed by Matt Trenary, provides an interface and tracking for USA Rugbys National Championship Series. "The National Championship Series web application is designed to facilitate the management of championship event rosters, scores, and game information. It is designed to work from any phone, computer, or tablet that can access the internet."
Run an individual queue item
To configure the database create file
app/config.php with the following structure:
<?php $config = array( 'username' => 'user', 'password' => 'pass', 'database' => 'db', 'server' => '127.0.0.1', 'consumer_key' => 'DEADBEEF', 'consumer_secret' => 'BEEFDEAD', 'auth_domain' => 'https://www.allplayers.com', // Optional 'admin_group_uuid' => 'ffc1b780-cc4c-11e1-9e39-12313d2a2278', 'verify_peer' => TRUE // FALSE if you're connecting to sandbox where HTTPS is invalid. 'cdn' => 'https://d2xe74i6zxd0fz.cloudfront.net' );
Included under directory: "db" is the DDL used for the system; if there are updates to the structure this can be documented using the following command:
mysqldump -d <db_name> --skip-add-drop-table --skip-add-locks --skip-disable-keys --skip-set-charset --skip-comments --compact -u<user> -p<pass> > db/schema.sql
Information about current updates and status of the database schema can be managed with the doctrine cli:
Updating to the latest version:
If you choose to update the hash on any of the files, be sure to run make to update them.
Note this project uses composer to manage dependencies.
git clone ... composer.phar install
Generate a token for this app: http://develop.allplayers.com/oauth.html
Currently games support iframeable elements.
There are several parameters you can pass in the [GET] request to
/game.php in order to properly retrieve iframes.
- Must be passed for all iframe requests
- This can either be a uuid of a game or an id.
- Either the
uuidmay be included in the request, but the
- Either the
- An array of parts of the page you want to receive in the iframe.
- Possible options:
Additionally, you can also request standings for a league or division, in order to do that you have to specify a group to display standings in when you are creating the competition.
- Get the html representation of standings based on sportsml generated and interpreted with our xsl sheet.
- Get the xml file with all the standings data formatted in sportsml.
In order to start using the testing framework, you first have to install mink/behat from composer dev so run:
compose update --dev
Next step is to modify your behat.yml.dist file:
default: context: class: 'FeatureContext' extensions: Behat\MinkExtension\Extension: goutte: ~ selenium2: ~
And finally, run the tests by running:
Optionally, add params like host:
To look at mink extensions available that you can use in your tests,
To create your own,