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
- Host: GitHub
- URL: https://github.com/code-rhapsodie/ezdataflow-example
- Owner: code-rhapsodie
- License: other
- Created: 2019-10-08T13:02:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T15:14:38.000Z (over 2 years ago)
- Last Synced: 2023-12-07T15:45:33.828Z (over 2 years ago)
- Language: PHP
- Homepage: http://ez.dataflow.ovh
- Size: 1.63 MB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```