Statistics generation service for StreetComplete. It is powering profile view in the app where various statistics are displayed.
Works with PHP 7.3+ and MariaDB 10.2.4+.
.htaccess
file is not usedconfig.php
from config.sample.php
template and fill with production settingsdelete_data_of_deleted_users.php
should be scheduled to run daily, update_incomplete_statistics.php
should be scheduled to run in regular intervals, for example every minute or so, generate_ranks.php
should be scheduled to run in regular intervals, hourly is good, but can be in shorter intervals as wellconfig.php
from config.sample.php
template and fill with development settingsListen for Xdebug
launch config before running any scriptsphp <SCRIPT>
php -S localhost:8080
and go to http://localhost:8080/get_statistics.php?user_id=<USER_ID>