Skip to content

carloshss0/wallet_setup

Repository files navigation

🪙 Wallet Setup

This repository sets up the full Wallet environment using Docker and Docker Compose. It includes all required services such as MySQL, Kafka, the walletcore, and wallet_balance_service that consumes the kafka topics.


⚠️ Important: Git Submodules

This project uses Git submodules. Make sure you clone it correctly to initialize all submodules.

✅ To clone the repository with submodules:

git clone --recurse-submodules https://github.com/carloshss0/wallet_setup.git
cd wallet_setup

✅ If you already cloned the repo without --recurse-submodules:

git clone --recurse-submodules https://github.com/carloshss0/wallet_setup.git
cd wallet_setup

After that, you're free to run the application using the command docker-compose up -d --build

To test the main endpoints /transactions and /balances/{account_id}, you can use the run_test.http

Populated data in the tables clients and accounts from the walletcore service

To make the process of testing this application easier, I already populated two clients and two accounts into the database

INSERT INTO clients (id, name, email, created_at) VALUES
('123x431ffg', 'John', 'john@email.com', CURDATE()),
('123x4141fa', 'Jane', 'jane@email.com', CURDATE());

INSERT INTO accounts (id, client_id, balance, created_at) VALUES
('acc1', '123x431ffg', 1000.00, CURDATE()),
('acc2', '123x4141fa', 500.00, CURDATE());

Have fun!

About

Repository to setup the microservices for wallet project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published