Each cardholder (holder) has an account with their information. For each operation performed, a transaction is created and associated with the respective account. Transactions have specific types, e.g., Normal Purchase, Purchase with installments, Withdrawal, and Credit Voucher. Normal Purchase and Withdrawal transactions are recorded with negative values, while Credit Voucher transactions are recorded with positive values.
Figure 01: Account transaction flow diagram.
To clone the repository using the command line, run:
git clone https://github.com/gustavofreze/account.gitTo install project dependencies locally, run:
make configureTo start the application containers, run:
make startTo stop the application containers, run:
make stopRun all tests with coverage:
make test Run all tests without coverage:
make test-no-coverageRun static code analysis:
make review Open static analysis reports (e.g., coverage, lints) in the browser:
make show-reports You can check other available commands by running
make help.
| Environment | DNS |
|---|---|
Local |
http://account.localhost |
| Environment | URL | Port |
|---|---|---|
Local |
jdbc:mysql://localhost:3307 | 3307 |
You can access the application logs using the following command:
make show-logs