Scrape city districts data and save it to a SQL database.
Provide a simple web interface for editing scraped data.
Note: originally, this was a job interview task. Now it is a playground for trying out tools, frameworks, patterns etc.
Build the development containers:
docker-compose build
Install required components:
docker-compose run php-fpm composer install
Create the database structure:
docker-compose run php-fpm vendor/bin/doctrine orm:schema-tool:update --force
Run the scraper to populate the database:
docker-compose run php-fpm ./console.php import --help
docker-compose run php-fpm ./console.php import
Start the development containers:
docker-compose up -d
Open http://127.0.0.1:8080 in your browser.
- replace the validator with Valitron? zend-validator?
- automatically generate forms with zend-form and model annotations?
- pretty HTML / CSS - use a CSS framework