Skip to content

Veerendra-Prasad/Java_Bank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Bank Program

Overview

This Java Bank Program is designed to manage bank accounts with features such as logging, password encryption, and JSON file-based database storage.

Features

  • Logging: Logs all activities and transactions.
  • Password Encryption: Encrypts user passwords for secure storage.
  • JSON Database: Uses a JSON file to store user data and transaction history.

Requirements

  • Java Development Kit (JDK) 8 or higher
  • Gson library for JSON parsing

Installation

  1. Clone the repository:

    git clone https://github.com/Veerendra-Prasad/Java_Bank.git
    cd Java_Bank
  2. Install the Gson library: If you are using Maven, add the following dependency to your pom.xml:

    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.8.6</version>
    </dependency>

Usage

  1. Compile the program:

    javac -cp .gson-2.8.6.jar App.java;
  2. Run the program:

    java -cp .gson-2.8.6.jar App;

Configuration

  • Database File: The JSON file used as the database is located at src/database.json.

Example

Here's an example of how to use the program:

  1. Create a new account:
    • Enter your name, password, and initial balance.
  2. Login to your account:
    • Enter your name and password.
  3. Perform transactions:
    • Deposit, withdraw, or check your balance.

Contributing

Feel free to fork this repository and contribute by submitting a pull request. Please ensure your changes are well-documented and tested.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any inquiries, please contact [email protected].

Acknowledgments

  • The Gson library for JSON parsing
  • Creating a custom class for logging the transcations

About

A Bank program written in java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages