Your task is to create a PHP application that is a feeds reader. The app can read feed from multiple sources and store them to database. Sample feeds http://www.feedforall.com/sample-feeds.htm.
- As a developer, I want to run a command which help me to setup database easily with one run.
- As a developer, I want to run a command which accepts the feed urls (separated by comma) as argument to grab items from given urls. Duplicate items are accepted.
- As a developer, I want to see output of the command not only in shell but also in pre-defined log file. The log file should be defined as a parameter of the application.
- As a user, I want to see the list of items which were grabbed by running the command line above, via web-based. I also should see the pagination if there are more than one page. The page size is a configurable value.
- As a user, I want to filter items by category name on list of items.
- As a user, I want to create new item manually via a form.
- As a user, I want to update/delete an item
- Fork this repository
- Start coding. The application must be developed by using a PHP framework and follow coding standard of that framework. Using Symfony or Laravel is a plus.
- Use git flow to manage branches on your repository
- Open a pull request to
master
branch after done. - The implementation should covered by Unit Test or Functional Test.
cd base-php
sudo nano /etc/hosts
add line
127.0.0.1 lenguyenky.local
cp lenguyenky/.env.example lenguyenky/.env
cp docker/.env.example docker/.env
cd docker
docker-compose up -d
./dk ga
composer install
php artisan key:generate
php artisan migrate --seed
acccount default
[email protected] / 12345678
account admin
[email protected] / admin
Name : <your_name>
Host name/address: postgres
Port : 5432
Maintenance database: postgres
Username: none
php artisan migrate --seed
php artisan feed:urls https://www.feedforall.com/sample.xml,https://www.feedforall.com/sample.xml,https://www.feedforall.com/sample.xml,https://www.feedforall.com/sample-feed.xml,https://www.feedforall.com/blog-feed.xml,http://www.rss-specifications.com/blog-feed.xml --log=grab
composer test