An open API service indexing awesome lists of open source software.

https://github.com/code-rhapsodie/ezdataflow-example

eZ Dataflow example project with Ibexa 4.5
https://github.com/code-rhapsodie/ezdataflow-example

Last synced: 8 months ago
JSON representation

eZ Dataflow example project with Ibexa 4.5

Awesome Lists containing this project

README

          

# 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 :

```shell script
$ composer install -o
```

## Init the databases

Perform this command to initialize the database :

```shell script
$ php bin/console ibexa:install
```

## Dataflow database schema

Execute this command to dump all necessary SQL queries:

```shell script
$ 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:

```shell script
$ php bin/console kaliop:migration:migrate
```

## Try

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](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:

```shell script
$ 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"](http://127.0.0.1/admin/view/content/52/full/true/54) with the Ibexa admin.

To add a schedule from back office, the option must be in YAML format like this:

```yaml
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
```