A statistics PHP web app for athletics organisations
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need to have :
- PHP 5.3+
- MySQL
- mod_rewrite activated, document root routed to /public (tutorial below)
- Composer installed
Tutorials for Ubuntu 14.04 LTS and Ubuntu 12.04 LTS.
Inside app/config
, make configs your own. There is 3 files : env.php
, db.php
and config.yml
.
Inside app/config/env.php
, set the environment mode. Choose between 'development' and 'production' :
'mode' => 'development'
Inside app/config/db.php
edit the database credentials and fill in your values. There is 2 arrays. One for 'development' mode and one for production mode.
'driver' => 'mysql',
'host' => 'localhost',
'port' => '1234',
'database' => 'stats',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci'
Inside app/config/config.yml
, you can customize the app and dependencies.
language_code : ''
app_name : 'StatAthlé'
organisation_name : 'Organisation Name'
launch_year : '2017'
data_licence : 'by/4.0'
Inside _install
folder execute the 3 sql
queries files with PHPMyAdmin or SequelPro to create the demo database.
Install all dependencies in the project's root folder to fetch the dependencies and to create the autoloader :
$ cd <project_name>
$ composer install
or
$ php composer.phar install
Inside app/view/_notes.twig
, make content yours. Your can add information about versionning, data source of data, history, credentials, cool stuff etc.
<h2>Notes</h2>
<p>Le module des statistique et résultats du <i>{{config.organisation_name}}</i> est en version beta. Il reprend d'anciennes bases de résultats allant de 1962 à 2010 et pouvant contenir des erreurs et bugs (résultats, disciplines, noms, dates). C'est pour cette raison que vos réclamations ou annonces d'erreurs sont les bienvenue. Vous pouvez nous les signaler grâce au bouton bleu <em>Signaler une erreur</em> en haut à gauche de la page.</p>
Not yet
- MINI 2 - The PHP framework used
- Slim 3 Skeleton - Architecture inspired from
- Fork StatAthlé
- Create your feature branch (git checkout -b my-new-feature)
- Make your changes
- Run the tests, adding new ones for your own code if necessary (phpunit)
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Michael Ravedoni - Initial work, michaelravedoni
See also the list of contributors who participated in this project.
This project is licensed under the MIT License, so feel free to use the project for everything you like. - see the LICENSE.md file for details.
- [feature] Customisation
- [feature] I18n
- [bug] Queries optimisation