ohbus/retail-banking
关于
Consumer Banking Application
网站与应用开发可以做什么
- User Management: Secure user registration and login with Spring Security.
- Account Management: View and manage savings and checking accounts.
- Fund Transfers: Transfer funds between own accounts or to other recipients.
- Transaction History: View a detailed history of all transactions.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Retail Banking Application
A full-featured retail banking application built with Spring Boot, Thymeleaf, and Spring Security. This project simulates core banking functionalities, including user authentication, account management, and fund transfers.
The application is live at bank.subho.xyz
Features
- User Management: Secure user registration and login with Spring Security.
- Account Management: View and manage savings and checking accounts.
- Fund Transfers: Transfer funds between own accounts or to other recipients.
- Transaction History: View a detailed history of all transactions.
- Admin Panel: Manage users and view system-wide activity.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
- Docker (Docker Compose is now included with Docker Desktop and Docker Engine; no separate installation is needed)
Installation
Option 1: Clone the repository (recommended)
- Clone the repository:
git clone https://github.com/ohbus/retail-banking.git - Navigate to the project directory:
cd retail-banking
Option 2: Download as ZIP (for beginners or those without a GitHub account)
- Go to the GitHub repository page.
- Click the green Code button, then select Download ZIP.
- Extract the ZIP file to your desired location.
- Open a terminal and navigate to the extracted
retail-bankingdirectory.
Development
To start the application in a development environment, you can use the provided Docker Compose file to start a local MySQL database.
- Start the development database:
docker compose -f docker-compose.dev.yml up -d - Run the application from your IDE:
- Open the project in your favorite IDE (e.g., IntelliJ IDEA).
- Run the
Applicationclass. Thedevprofile is active by default.
The application will be available at http://localhost:9998.
Production
To run the application in a production-like environment, use the following command:
docker compose -f docker-compose.prod.yml up -d --build
This will start the application and a MySQL database container in detached mode.
Database Migrations
This project uses Liquibase to manage database schema changes. The migration scripts are located in the src/main/resources/db/changelog directory.
Generating Migrations
When you make changes to the JPA entities, you can automatically generate a new migration script by running the following command:
mvn liquibase:diff -Dliquibase.diffChangeLogFile=src/main/resources/db/changelog/changes/<new-version>-<description>.yaml
Replace <new-version> with the next version number (e.g., 002) and <description> with a brief description of the changes.
Testing
This project uses Testcontainers to automatically manage a MySQL container for testing. This ensures a consistent and reliable testing environment.
To run all tests, use the following command:
mvn clean verify
Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Please see the CONTRIBUTING.md file for details on our code of conduct, and the process for submitting pull requests to us.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
Subhrodip Mohanta - @SubhrodipMohanta - [email protected]
Project Link: https://github.com/ohbus/retail-banking
探索相关项目
加载中…