Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vivekpatel111/simple-wallet-service
Wallet which will allow credit, debit of amount and cancellation of debit/credit transactions and shows current balance.
https://github.com/vivekpatel111/simple-wallet-service
hibernate java lombok maven mysql rapid-development sparkjava wallet
Last synced: 11 days ago
JSON representation
Wallet which will allow credit, debit of amount and cancellation of debit/credit transactions and shows current balance.
- Host: GitHub
- URL: https://github.com/vivekpatel111/simple-wallet-service
- Owner: vivekpatel111
- License: mit
- Created: 2018-08-27T17:59:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T18:46:24.000Z (over 6 years ago)
- Last Synced: 2024-11-23T17:23:00.908Z (2 months ago)
- Topics: hibernate, java, lombok, maven, mysql, rapid-development, sparkjava, wallet
- Language: Java
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💰 Simple Wallet Service 💻
![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg)
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.)
```shell
sh setup.sh
```1. Setup maven project `wallet-service`
```shell
mvm clean install
```#### Build project
```shell
mvn clean compile assembly:single
```
Above command will generate `jar` file with all dependencies.#### Run project
Run project directly using `maven` with below command
```shell
mvn exec:java
```OR
Run project from generated `jar` file using below command
```shell
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](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/462b92ee5bb69bdfbf24)
## 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.*