Skip to content

mohsenr7596/balance-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wallet Microservice

Wallet Microservice

A simple Spring Boot microservice for managing user wallet balances and transaction logs. Utilizes MySQL and Docker.

API Endpoints

Get Balance

  • URL: /api/wallet/get-balance
  • Method: GET
  • Params: user_id (int)
  • Response: {"balance": 4000}

Add Money

  • URL: /api/wallet/add-money
  • Method: POST
  • Params: user_id (int), amount (int)
  • Response: {"reference_id": 12312312312}

Setup

Prerequisites

  • Java 21
  • Docker & Docker Compose

Running

git clone https://github.com/yourusername/wallet-microservice.git
cd wallet-microservice
docker-compose up --build

About

Microservice for managing user wallets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published