Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Latest commit

 

History

History
63 lines (36 loc) · 1.3 KB

README.md

File metadata and controls

63 lines (36 loc) · 1.3 KB

This project is archived

test-broadway

[POC] Broadway 0.3.0 in symfony2 (2.3.x) project.

If you want help me, fork and pull request or if you have already a fonctional example using MySQL Db for readmodel over Broadway, contact me.

Note : Use the tag name command_handler in service configuration for all your commande handler. See src/Jb/TestBundle/Ressources/config/service.yml in this repository.

Install

Install vendor

composer install

Init event-store table

Set db connection before execute this command.

app/console broadway:event-store:schema:init

The broadway/broadway library is very easy to use. I use only event_store in my first test but the simplicity of implementation of this part is encouraging.

Init ReadModel

For use the Doctrine ReadModel, init schema with this command :

app/console doctrine:migrations:migrate --em=readmodel

Publish asset

app/console assets:install

Use

Login

Go to URL <URL>/login Fill form with user and password present in login page.

Create and update

Open browser and access to this url <URL>/make/<texte> for create a aggregate.

For update, use this url <URL>/update/<UUID>/<texte>

For get the uuid, read in event_store table with MySQL Client.