This projet is based on Ibexa OSS 4.5
- A SGDB server (MySQL, MariaDB, or other...).
- PHP 8.1+
- composer
- yarn
Clone this repository or download an archive.
Open your favorite terminal, and go into ezdataflow-example
folder.
Execute this command to install all vendor dependencies :
$ composer install -o
Perform this command to initialize the database :
$ php bin/console ibexa:install
Execute this command to dump all necessary SQL queries:
$ php bin/console code-rhapsodie:dataflow:dump-schema --update
Execute queries on your databases.
Execute this command to execute all Kaliop migration available:
$ php bin/console kaliop:migration:migrate
Before execute command, get folder 'French city' location id from backoffice http://127.0.0.1/admin/content/location/54#ez-tab-location-view-details#tab.
Now you can use all command to try Dataflow bundle and eZ Dataflow bunble.
Try this command:
$ php bin/console code-rhapsodie:dataflow:execute fc '{"url":"https:\/\/geo.api.gouv.fr\/communes?fields=nom,code,codesPostaux,codeDepartement,codeRegion,population&format=json&geometry=centre","content_type":"city","parent_location_id":54}'
After end of work, go to admin into the folder "French cities" with the Ibexa admin.
To add a schedule from back office, the option must be in YAML format like this:
url: 'https://geo.api.gouv.fr/communes?fields=nom,code,codesPostaux,codeDepartement,codeRegion,population&format=json&geometry=centre'
content_type: "city"
parent_location_id: 54