Wallet which will allow credit, debit of amount and cancellation of debit/credit transactions and shows current balance.
-
Setup mysql database
wallet_db
(given setup file will create database and tables with root user with no password.)sh setup.sh
-
Setup maven project
wallet-service
mvm clean install
mvn clean compile assembly:single
Above command will generate jar
file with all dependencies.
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
Download Postman collection for API
Table Name | Description |
---|---|
transaction_status_types | Contains transaction status cycle like -
|
transaction_types | Contains transaction types like -
|
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 -
|
wallet_types | Contains wallet types with minimum balance like -
|
wallets | Contains wallet information with current balance |
This project is licensed under the terms of the MIT license.