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.git
To install project dependencies locally, run:
make configure
To start the application containers, run:
make start
To stop the application containers, run:
make stop
Run all tests with coverage:
make test
Run all tests without coverage:
make test-no-coverage
Run 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