Skip to content

ajordi/symfony-demo-ddd-cqrs-es

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Demo DDD, CQRS + ES

This is a small demo application of a Symfony Application with DDD, CQRS and ES

Get started

Clone the project:

$ https://github.com/ajordi/symfony-demo-ddd-cqrs-es
$ cd symfony-demo-ddd-cqrs-es

Spin up containers

$ docker-compose up -d
  • Wait until php service is ready to handle connections. Check using docker-compose logs php

Setup The Queue

$ docker-compose exec -T php /usr/local/bin/php -d xdebug.remote_enable=0 -d xdebug.profiler_enable=0 -d xdebug.default_enable=0 bin/console queue:setup

Start The Consumer

$ docker-compose exec -T php /usr/local/bin/php -d xdebug.remote_enable=0 -d xdebug.profiler_enable=0 -d xdebug.default_enable=0 bin/console consumer:start notify_validation_on_user_registered

Create The Event

  • Must be ran in another terminal tab since consumer is not detached (previous command)
$ docker-compose exec -T php /usr/local/bin/php -d xdebug.remote_enable=0 -d xdebug.profiler_enable=0 -d xdebug.default_enable=0 bin/console user:create test@test.test

Check The Event Was Successfully Processed

browser to http://localhost:8025

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published