pawel-slowik / districts

City districts scraper and editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage

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.

Installation

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

Usage

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.

TODO

  • replace the validator with Valitron? zend-validator?
  • automatically generate forms with zend-form and model annotations?
  • pretty HTML / CSS - use a CSS framework

About

City districts scraper and editor

License:MIT License


Languages

Language:PHP 83.1%Language:HTML 15.4%Language:PLpgSQL 1.3%Language:Dockerfile 0.2%