Xml feeds handler using Symfony 5 and VueJS.
/!\ WARNING this repository is still a work in progress since I started recently a bunch of updates.
- Docker-compose incoming updates(I am intending to remove the nginx container because I only need a php container to make this work properly. Then it will be up to you, either you use the php container or you use a local installation of PHP in your environment.)
- VueJS front components incoming updates
- feature to choose either to provide an xml feed compliant with the required format, either start processing the existing remote XML feed
- Unit and functional tests
- Docker CE for Windows, Docker CE for Linux or Docker CE for MAC installed
- Docker Compose installed
Install and start the Docker stack.
The docker stack is composed by 2 containers : php7 (latest) and nginx. All the configuration is done.
Using Docker CE :
docker-compose build
then
docker-compose up -d
You only need this command. It will start the php7 container
Set www-data user and group as owner of the files inside the project. Connect to the php container with the root user using this command
docker exec -it xml_feeds_handler_php bash
When you are in the bash run
chown -R www-data:www-data .
Exit from the bash
exit
Connect to the php container with the www-data user:
docker exec -itu www-data xml_feeds_handler_php composer install
The xml feed is located at:
https://github.com/fgamess/xml-feeds-handler/raw/master/xml-feeds/product-feed-sample.xml
Just wait, the data will be displayed as long as the processing is not finished.
- Unit tests
Just run
bin/phpunit tests/Unit
- Functional tests
Just run
bin/phpunit tests/Functional
- All tests
Just run
bin/phpunit tests