Skip to content

Feeds database by reading external website about cities and villages in Slovakia, consolidate the data and provide as API

License

Notifications You must be signed in to change notification settings

rey26/settlement-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Settlement reader

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.

Installation

  1. docker-compose up -d --build inside main directory

Usage

ImportSettlementsCommand

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

Testing

  1. run php bin/phpunit inside php container (docker-compose exec php /bin/bash)

About

Feeds database by reading external website about cities and villages in Slovakia, consolidate the data and provide as API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages