Reads data about cities and villages in Slovakia from website e-obce.sk and stores structured data in DB. The data can be viewed in admin view provided by EasyAdmin bundle and accessed by API in future releases.
docker-compose up -d --build
inside main directory
This command downloads data from external site, maps it to project entities and stores to DB. In order to also download coat of arms of each available city/village, run the command with option coa-download
.
The option to delete all settlements is also available.
docker-compose exec php /bin/bash
php bin/console app:import-settlements
# download coat of arms locally
php bin/console app:import-settlements --coa-download
# delete settlements
php bin/console app:import-settlements --delete-settlements
- run
php bin/phpunit
inside php container (docker-compose exec php /bin/bash
)