Git Product home page Git Product logo

bank-account-transactions's Introduction

Bank Account Transactions Microservice

A Bank account transactions microservice with Spring Boot, Postgres as Database, and RabbitMQ for async communication. This microservice is responsible for creating user account and balances for provided currencies that are defined as an enum:

public enum Currency {
    EUR, SEK, GBP, USD
}

Users can deposit and withdraw money from accounts by providing a Direction:

public enum Direction {
    IN, OUT
}

Project uses Spring AOP to log the result of every transaction which improves the efficiency of main business logic by keeping it clean.

All transactions will be executed with proper isolation level.

Ingredients

How to deploy

You need to have docker installed on your machine. you can easily deploy the service with executing the following command in your bash terminal:

docker compose up

It will create and start database and message broker services first and then it will create a container form the bank account microservice docker image and will bind port 8080 of the container for public use.

How to use

Hit port 8080 for good reasons.

API page

Go to OpenAPI documents page and hit the endpoints.

How to Test

The Main business logic is covered with testing to a good extent, but there are also rooms for improvement.

./gradlew test

Todo

  • add benchmark
  • add integration test for transactions
  • add java docs
  • add build status and test coverage to pull requests
  • add project status to readme

bank-account-transactions's People

Contributors

dependabot[bot] avatar fractalliter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.