semyon4eg / PIP-test-task-yii2

Test task for junior yii2-developer for PIP agency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Andrey's test task.

INCTRUCTIONS:

  1. Download the project.
  2. Configurate your web-server, preferably use Apache as a webserver.
  3. Make an empty MySQL-compatible database named 'pora_db' with 'root' user and blank password or make changes to a db.php config file.
  4. Install a composer if needed and run 'composer update' inside the project.
  5. Run requirments.php to check whether additional php packages are needed and install them.
  6. Use 'yii migrate' console command and apply all migrations.
  7. For now the project should run blank main page with just a layout template applied.
  8. Hit the More posts link at the top-right corner of the page, this will add a job for a parser in the yii-queue.
  9. Run 'yii queue/info' in console to check if the job was added.
  10. Add a new line in a crontab containing:
* * * * * php /path/to/websites/location/poravinternet.loc/yii queue/run

This would add an each minute cron execution of provided script, i. e. running yii-queue job tasks.

  1. After a single execution of the parser script a bunch of new posts and their categories would be added to a project's database and an e-mail would be sent to me, indicating that you haven't broke my project yet...
  2. Have a nice day!

About

Test task for junior yii2-developer for PIP agency

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 95.1%Language:Shell 3.2%Language:Batchfile 1.1%Language:CSS 0.6%