Objective of the project:
This project implements the “Tournament grid” functionality, as well as the administrative interface for its management. The tournament grid has a knockout type. It is based on the participation of 2 teams, of which one winner goes to the next round. Examples of tournament nets can be found in the search engine link
A tournament grid is built in the public interface. In the administrative interface, control this grid. Tournament grid data is saved to the database. The administrative section displays a report on commands with fields:
- “Team”;
- “place in the tournament”;
- “overall team performance in points / goals for the entire tournament”;
- “average performance per match”;
- “best performance per match”.
Admin panel - Tournament statistics:
Admin panel - Tournament matches:
-
Copy and edit env file:
cp .env.example .env
Need config MySQL connection in
.env
file and createtournaments
database:CREATE DATABASE `tournaments` COLLATE utf8_general_ci;
-
Install dependencies:
composer install
-
Generate encryption key for Laravel:
php artisan key:generate
-
Publish assets and config for admin-panel:
php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
-
Install admin-panel:
php artisan admin:install
-
Refresh migrations (some problem with admin_menu inserting):
php artisan migrate:refresh --path=/database/migrations/2019_08_22_014400_create_playoff_admin_menu.php
-
(Optional) Complete seeds for example data (teams, matches, tournament, tournament matches):
php artisan db:seed
-
See main page on
http://localhost/
. -
See admin panel on
http://localhost/admin
.Login:
admin
, Password:admin
.
Thanks Joe Beason
for design (link).
@kovalevcon