Skip to content

MarvyNwaokobia/banking-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Banking System

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.

Features

  • 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

Project Structure

  • src/cli.rs — Command-line interface logic
  • src/database.rs — Database operations and SQLite integration
  • src/lib.rs — Library module (shared logic)
  • src/luhn.rs — Luhn algorithm implementation
  • src/main.rs — Application entry point
  • src/menu.rs — Menu and user interaction logic
  • bank.s3db — SQLite database file
  • Cargo.toml — Rust project configuration

Getting Started

Prerequisites

Build and Run

# 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 run

Usage

Follow the on-screen prompts to create accounts, log in, and perform banking operations.

License

This project is licensed under the MIT License.

About

A simple command-line banking system written in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages