Skip to content

Bank account transaction microservice with Spring Boot, PostgreSQL, and RabbitMQ

License

Notifications You must be signed in to change notification settings

fractalliter/bank-account-transactions

Repository files navigation

Bank Account Transactions Microservice

A Bank account transactions microservice with Spring Boot, Postgres, and RabbitMQ. 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 their accounts by providing a Direction:

public enum Direction {
    IN,OUT
}

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 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 the port 8080 for the good reasons.

API page

Go to OpenAPI documents page and hit the endpoints.

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