Skip to content

zawiszaty/bank-account

Repository files navigation

Bank Account

CircleCI

Modular Monolith example.

How to run?

  1. You must have installed docker, docker-compose and make locally.
  2. make start
  3. API of your Laravel microservice is available on http://localhost:9898/api/account
  4. Login into monolith container make monolith
  5. 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.

  1. Open monolith/config/services.yaml
  2. Change:
    account.api.implementation:
        arguments:
            - '@App\Module\Account\API\LaravelMonolithClient'
        class: App\Module\Account\API\LaravelAccountAPI
    To:
     account.api.implementation:
         arguments:
             - '@App\Module\Account\Main\Application\AccountService'
         class: App\Module\Account\API\ImplAccountAPI

How to create you own?

  1. Create your implementation adapter in API folder, implement interface Account API and that's it. :P

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published