Bank Account
Modular Monolith example.
How to run?
- You must have installed docker, docker-compose and make locally.
make start
- API of your Laravel microservice is available on http://localhost:9898/api/account
- Login into monolith container
make monolith
- Run
bin/console app:account
and that's it :P
How to change API implementation?
Default implementation is laravel microservice but another available is in memory eventStore implementation.
- Open
monolith/config/services.yaml
- Change:
To:
account.api.implementation: arguments: - '@App\Module\Account\API\LaravelMonolithClient' class: App\Module\Account\API\LaravelAccountAPI
account.api.implementation: arguments: - '@App\Module\Account\Main\Application\AccountService' class: App\Module\Account\API\ImplAccountAPI
How to create you own?
- Create your implementation adapter in API folder, implement interface Account API and that's it. :P