Skip to content

Dart Example Implementation of a Hexagonal/Onion/Clean Architecture

License

Notifications You must be signed in to change notification settings

schneidersteve/buckpal-dart

Repository files navigation

Dart Example Implementation of a Hexagonal/Onion/Clean Architecture

Inspired by https://github.com/thombergs/buckpal

Tech Stack

Layers and Dependency Inversion

Dependency Inversion

Send Money Use Case

Feature: Send Money

  Scenario: Transaction succeeds
    Given a source account
    And a target account

    When money is send

    Then send money succeeds

    And source account is locked
    And source account withdrawal will succeed
    And source account is released

    And target account is locked
    And target account deposit will succeed
    And target account is released

    And accounts have been updated

Dart Examples

dart pub get

dart analyze

dart test

dart test -r expanded

dart --enable-experiment=records test

dart run

find . -name "*.dart" | entr -cr dart test -r expanded

find . -name "*.dart" | entr -cr dart --enable-experiment=records test -r expanded