The Bank Account Management System is a Spring Boot application designed to manage bank accounts. It supports functionalities such as creating accounts, depositing, withdrawing, and transferring money between accounts.
- Create new bank accounts.
- View details of individual accounts.
- List all accounts.
- Deposit money into an account.
- Withdraw money from an account.
- Transfer money between accounts.
CC-BANK/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── code_compilers/
│ │ │ └── CC_BANK/
│ │ │ ├── BankApplication.java
│ │ │ ├── controller/
│ │ │ │ ├── HomeController.java
│ │ │ │ ├── AccountController.java
│ │ │ ├── exception
│ │ │ | ├── AccountNotFoundException.java
│ │ │ | ├── InsuffiecientFundsException.java
│ │ │ ├── model/
│ │ │ │ ├── Account.java
│ │ │ │ ├── CheckingAccount.java
│ │ │ │ ├── SavingsAccount.java
│ │ │ ├── repository/
│ │ │ │ ├── AccountRepository.java
│ │ │ ├── service
│ │ │ │ ├── AccountService.java
│ │ ├── resources/
│ │ │ ├── application.properties
│ │ │ ├── templates/
│ │ │ │ ├── index.html
│ │ │ │ ├── account.html
│ │ │ │ ├── accounts.html
│ │ │ │ ├── transfer.html
│ │ │ │ ├── create-account.html
│ │ │ │ ├── create account.html
│ │ │ │ ├── pin-form.html
│ │ │ │ ├── script.js
│ │ │ ├── static/
│ │ │ ├── css/
│ │ │ └── style.css
│ │ ├── application.properties
│ ├── test/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── code_compilers/
│ │ │ └── CC_BANK/
│ │ │ ├── BankApplicationTests.java
└── pom.xml
- JDK 23
- Maven
- MySQL Server
-
Clone the repository:
git clone https://github.com/your_username/CC-BANK.git cd CC-BANK
-
Create the Database: The sql command are linked to the system. When u run the project the tables will be automatically added.
-
Configure the Application: Open
src/main/resources/application.properties
and set your MySQL credentials:spring.datasource.url=jdbc:mysql://localhost:3306/ccbank spring.datasource.username=your_database_username spring.datasource.password=your_database_password spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true
-
Build and Run the Application: Use Maven to build and run the application:
mvn spring-boot:run
Once the application is running, you can access it in your web browser at http://localhost:8080
.
-
Home Page:
http://localhost:8080/
- Lists all accounts and allows you to create new accounts.
-
View Account:
http://localhost:8080/accounts/{id}
- View details of an account, deposit money, and withdraw money.
-
Transfer Money:
http://localhost:8080/transfer
- Transfer money between accounts (implemented in
transfer.html
).
- Transfer money between accounts (implemented in
- index.html: Home page to list all accounts.
- account.html: Displays account details and actions.
- accounts.html: Lists all accounts.
- transfer.html: Shows details of a transfer.
Basic styling is provided in src/main/resources/static/css/style.css
.
##Demo Video
Demo.Video.mp4
This project is licensed under the MIT License. See the LICENSE file for more information.