Skip to content

fgamess/xml-feeds-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xml-feeds-handler


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.

TODOS

  • 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

Table of contents

Prerequisites

Tools required
  • Docker CE for Windows, Docker CE for Linux or Docker CE for MAC installed
  • Docker Compose installed
Set up the docker stack

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

Setting www-data as owner of the files.

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
Install the vendors

Connect to the php container with the www-data user:

docker exec -itu www-data xml_feeds_handler_php composer install

How to use

Start processing the xml feed

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.

Testing

Run the tests
  1. Unit tests

Just run

bin/phpunit tests/Unit
  1. Functional tests

Just run

bin/phpunit tests/Functional
  1. All tests

Just run

bin/phpunit tests

About

Xml feeds handler using Symfony 4 and VueJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published