Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Wallet which will allow credit, debit of amount and cancellation of debit/credit transactions and shows current balance.

License

Notifications You must be signed in to change notification settings

vivekpatel111/simple-wallet-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💰 Simple Wallet Service 💻

Packagist

Wallet which will allow credit, debit of amount and cancellation of debit/credit transactions and shows current balance.

Setup project

  1. Setup mysql database wallet_db (given setup file will create database and tables with root user with no password.)

    sh setup.sh
  2. Setup maven project wallet-service

    mvm clean install

Build project

mvn clean compile assembly:single

Above command will generate jar file with all dependencies.

Run project

Run project directly using maven with below command

mvn exec:java

OR

Run project from generated jar file using below command

java -cp target/wallet-service-1.0.0-SNAPSHOT-jar-with-dependencies.jar com.wallet.WalletService

API

Download Postman collection for API

Run in Postman

Database Structure

Table Name Description
transaction_status_types Contains transaction status cycle like -
  • NEW
  • SUCCESSFUL
  • FAILED
  • CANCELLED
transaction_types Contains transaction types like -
  • CREDIT
  • DEBIT
transactions Contains transaction data with timestamp and status
transaction_status_logs Contains transaction log data with timestamp, old and new status
wallet_status_types Contains wallet status like -
  • ACTIVE
  • INACTIVE
wallet_types Contains wallet types with minimum balance like -
  • REGULAR
  • OVERDRAFT
wallets Contains wallet information with current balance

This project is licensed under the terms of the MIT license.

About

Wallet which will allow credit, debit of amount and cancellation of debit/credit transactions and shows current balance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published