bank-account is a Java 17 Spring Boot application used as an example of the Clean Architecture. The application allows you to:
- Open accounts
- Adjust accounts with deposits and withdrawals
- Prepare statements
It uses the h2 database in-memory database for convenience.
- Install JDK version 17. SDKMAN! makes it quite easy.
- Ensure a recent version of Maven is installed. SDKMAN! can help with that too.
- Clone this repo.
- In the root directory of the clone, run the following:
$ mvn clean install
- After a successful installation, in the target directory of the root, execute the following:
$ java -jar bank-account-<version>.jar
- Alternatively, start the application in your IDE by creating a run configuration for the com.crg.learn.account.application.start.Main Java file. There are no start up options.
After the application is started, navigate to the script directory and run the following scripts:
$ ./open_account.sh
$ ./deposit_amount.sh <account number from open_account.sh>
$ ./withdraw_amount.sh <account number from open_account.sh>
$ ./prepare_statement.sh <account number from open_account.sh>
Note these scripts hardcode the currency code "EUR," as the application currently supports only Euros.