Git Product home page Git Product logo

transaction-authorizer's Introduction

transaction-authorizer: a java application for banking transaction authorization

This is a java application for authorizing banking transaction based on a set predefined rules.

The program receives json lines as inputs that are read from operations file at "/src/main/java/resources/operations". As output, the program provides json lines for each given input โ€” imagine this as a stream of events arriving at an authorizer consumer.

Local Setup

1. Requirements

2. Build via terminal

In this project's root directory, run:

mvn clean install

3. Run via terminal

AuthorizerApplication is the project's main file. So, in order to run application, execute:

mvn exec:java -Dexec.mainClass=transaction.authorizer.AuthorizerApplication

The application reads all transaction inputs inside "/src/main/java/resources/operations" , and produces a output file in the project's root directory.

If you want to test application against other transaction inputs, feel free to change content inside "/src/main/java/resources/operations", and re-run application.

4. Run via Intellij

You may run the project by executing AuthorizerApplication via Intellij as follows:

Authorizer_Intellij

Application Architecture

Let's talk about the structure or architecture of the application. The project has been separated into the following layers:

  1. Main Application (AuthorizerApplication) starts application, and setups input and output files.
  2. Consumers receive and handle transaction events.
  3. Services process transaction events by applying a set of predefined rules, and producing an output for each event.
  4. Models represent the domain that we're using within the application (e.g., Account, and Transaction).

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.