Skip to content

code-rhapsodie/ezdataflow-example

Repository files navigation

Code Rhapsodie eZ Dataflow example

This projet is based on Ibexa OSS 4.5

Requirements

  • A SGDB server (MySQL, MariaDB, or other...).
  • PHP 8.1+
  • composer
  • yarn

Install

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

Init the databases

Perform this command to initialize the database :

$ php bin/console ibexa:install

Dataflow database schema

Execute this command to dump all necessary SQL queries:

$ php bin/console code-rhapsodie:dataflow:dump-schema --update

Execute queries on your databases.

Insert the City content type

Execute this command to execute all Kaliop migration available:

$ php bin/console kaliop:migration:migrate 

Try

Before execute command, get folder 'French city' location id from backoffice http:https://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

About

eZ Dataflow example project with Ibexa 4.5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published