Skip to content

An example of event sourcing API Platform 3 implementation

Notifications You must be signed in to change notification settings

alanpoulain/apip-eventsourcing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event Sourcing with API Platform 3 and Ecotone

This example project is based on the great work done in Domain Driven Design and API Platform 3.

The architecture follows:

  • Domain Driven Design and hexagonal architecture
  • CQRS
  • Event Sourcing

It uses API Platform for exposing the API and Ecotone for managing Event Sourcing.

Getting Started

If you want to try to use and tweak that example, you can follow these steps:

  1. Run git clone https://github.com/alanpoulain/apip-eventsourcing to clone the project
  2. Run make install to install the project
  3. Run make start to up your containers
  4. Visit https://localhost/api and play with your app!

Contributing

That implementation is pragmatic and far for being uncriticable. It's mainly a conceptual approach to use API Platform in order to defer operations to command and query buses.

It could and should be improved, therefore feel free to submit issues and pull requests if something isn't relevant to your use cases or isn't clean enough.

To ensure that the CI will succeed whenever contributing, make sure that either static analysis and tests are successful by running make ci

Authors

Alan Poulain

Mathias Arlaud with the help of Robin Chalas

About

An example of event sourcing API Platform 3 implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 93.1%
  • Makefile 2.3%
  • Dockerfile 2.3%
  • Shell 1.8%
  • Twig 0.5%