8000 GitHub - ArifRahmanAnik11/DigitalWalletLite: Lightweight Digital Wallet system built with Java and MySQL, featuring deposits, withdrawals, transfers, and transaction history. · GitHub
[go: up one dir, main page]

Skip to content

About

Lightweight Digital Wallet system built with Java and MySQL, featuring deposits, withdrawals, transfers, and transaction history.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

💳 DigitalWalletLite – Console-Based Java Wallet

DigitalWalletLite is a lightweight Java console application with a MySQL backend.
It’s designed as a simple, easy-to-understand demonstration of how Java programs can interact with a relational database to manage user accounts and transactions.


✨ Features

  • 🔑 User registration and login
  • 💰 Deposit and withdraw money
  • 🔄 Transfer money to other users
  • 📊 Check account balance
  • 📝 View transaction history

📦 Prerequisites

Before running, ensure:

  • ☕ Java JDK 8+ installed (java -version)
  • 🖥️ IDE recommendation: VS Code (with Java Extension Pack) or any suitable editor
  • 🗄️ MySQL server installed and running
  • 📚 MySQL Connector/J (mysql-connector-j-8.0.33.jar) in the lib/ folder
  • (Optional): MySQL Workbench or any MySQL GUI client for easier visualization

🔹 Clone the Project

git clone https://github.com/ArifRahman0102/DigitalWalletLite.git

⚙️ Plug & Play (macOS / Linux Version)

1. Open a terminal and navigate to your project folder

cd /path/to/DigitalWalletLite

2. Ensure MySQL is running

brew services start mysql
brew services stop mysql
brew services list

3. Compile the Java files

mkdir -p bin
javac -d bin -cp "lib/mysql-connector-j-8.0.33.jar" Main.java

4. Run the application

java -cp "bin:lib/mysql-connector-j-8.0.33.jar" Main

⚙️ Plug & Play (Windows Version)

1. Open a terminal and navigate to your project folder

cd C:\path\to\DigitalWalletLite

2. Ensure MySQL is running

net start mysql
net stop mysql

3. Compile the Java files

mkdir bin
javac -d bin -cp "lib\mysql-connector-j-8.0.33.jar" Main.java

4. Run the application

java -cp "bin;lib\mysql-connector-j-8.0.33.jar" Main

🗄️ Database Setup

Create Database

CREATE DATABASE IF NOT EXISTS wallet_db_single;

Create users, wallets, and transactions tables

(Follow the schema provided in the project)

Create MySQL User

CREATE USER 'wallet_user'@'localhost' IDENTIFIED BY '1010';
GRANT ALL PRIVILEGES ON wallet_db_single.* TO 'wallet_user'@'localhost';
FLUSH PRIVILEGES;

Update Main.java with correct credentials

static final String URL = "jdbc:mysql://localhost:3306/wallet_db_single";
static final String USER = "wallet_user";
static final String PASS = "1010";

▶️ Usage

  1. Register a new user or login.
  2. Use the menu options:
    • Deposit
    • Withdraw
    • Transfer
    • Transaction History
    • Check Balance
  3. Logout when done.

🛠️ Technologies Used

  • Java (JDK 8+)
  • MySQL
  • JDBC

👨‍💻 Author

Arif Rahman
🔗 GitHub: ArifRahman0102

About

Lightweight Digital Wallet system built with Java and MySQL, featuring deposits, withdrawals, transfers, and transaction history.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0