- In this project you are able to start/update/finish and list games for defined countries, for more details please read section "Commands"
- Symfony framework 6.2
- PHP version
8.1
- To run the project install docker on your computer docker.com
- On your local computer
git clone [email protected]:vcoder7/gamescoreboard.git - Switch to the project folder and run composer with following command
docker-compose up -dand the docker image will be started in background - Install composer dependencies
docker-compose exec phpfpm composer install
- List current games:
docker-compose exec phpfpm bin/console game:current_games - Start a new game:
docker-compose exec phpfpm bin/console game:start - Update a game:
docker-compose exec phpfpm bin/console game:update - Finish a game:
docker-compose exec phpfpm bin/console game:finish
We have players module which has to be maintained through 2 php service classes.
- A new player is created with 3 parameters
number,nameandnickname. - An existing player can be updated by its number
- We need a new service class for following PhpUnit test
App\Tests\Application\Services\Player\CreatePlayerServiceTest - Existing service class needs to be PhpUnit tested:
App\Application\Services\Player\UpdatePlayerService
- Run PHP unit tests:
docker-compose exec phpfpm php bin/phpunit