A simple command-line banking system written in Rust. This project demonstrates basic banking operations such as account creation, login, balance management, and transaction handling, using an SQLite database for persistent storage.
- Create new bank accounts
- Log in to existing accounts
- Check account balance
- Add income to accounts
- Transfer funds between accounts
- Close accounts
- Luhn algorithm for card number validation
- Data persistence with SQLite
src/cli.rs— Command-line interface logicsrc/database.rs— Database operations and SQLite integrationsrc/lib.rs— Library module (shared logic)src/luhn.rs— Luhn algorithm implementationsrc/main.rs— Application entry pointsrc/menu.rs— Menu and user interaction logicbank.s3db— SQLite database fileCargo.toml— Rust project configuration
- Rust (https://www.rust-lang.org/tools/install)
- SQLite3
# Clone the repository
$ git clone https://github.com/MarvyNwaokobia/banking-system.git
$ cd banking-system
# Build the project
$ cargo build --release
# Run the application
$ cargo runFollow the on-screen prompts to create accounts, log in, and perform banking operations.
This project is licensed under the MIT License.