Skip to content
Chirag edited this page Feb 20, 2025 · 1 revision

Welcome to the BANK wiki!

BANK

πŸ“Œ Overview

This project is a Rust-based backend system for managing bank accounts. It includes basic functionalities such as account creation, balance management, and transaction handling.

πŸ“‚ Project Structure

BANK/
│── src/
β”‚   β”œβ”€β”€ main.rs         # Main application file
│── target/             # Compiled output directory
│── .gitignore          # Git ignore rules
│── Cargo.lock          # Dependency lock file
│── Cargo.toml          # Project dependencies and metadata

πŸš€ Getting Started

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the repository:
    git clone https://github.com/chiragnabhoya/BANK.git
    cd BANK
  2. Build the project:
    cargo build
  3. Run the application:
    cargo run

πŸ“œ Features

  • Basic banking functionalities with Account and Bank structs.
  • Supports creating accounts and printing account details.
  • Manages balances and transactions.
  • Uses Rust's derive(Debug) for structured output.

πŸ“ Code Overview

The main.rs file defines:

  • Account struct: Represents a bank account with ID, balance, and holder name.
  • Bank struct: Manages multiple accounts.
  • Functions to print account details and manage balances.
  • Demonstrates Rust's borrowing and ownership concepts.

πŸ‘¨β€πŸ’» Contributing

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature-name).
  3. Commit changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-name).
  5. Open a Pull Request.

βš–οΈ License

This project is licensed under the MIT License.

πŸ“ž Contact

For inquiries or issues, please open an issue or reach out to chiragnabhoya2506@gmail.com.