GithubHelp home page GithubHelp logo

marcomaccio / bankanalyzer-he Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 366 KB

An Head End Application that allows to store bank account transactions and allows to make analysis

License: Apache License 2.0

Java 97.86% Shell 0.86% Gherkin 0.31% Dockerfile 0.97%

bankanalyzer-he's Introduction

#BANKANALIZER HE
Travis-ci.org CodeShip DepShield Badge

An Head End Application that allows to store Bank Account transactions and allows to make analysis

This part is the Head End part and exposes the data via RESTful services

ROADMAP

Milestone 0

Project set up and CI&CD life cycle

Milestone 1

GET APIs

GET /BankAccounts/
GET /BankAccounts/{id}
GET /BankAccounts/{id}/transactions/
GET /BankAccounts/{id}/transactions/{id}

from a relational db (MariaDB)

Milestone 2

POST APIs

POST /BankAccounts/
POST /BankAccounts/{id}
POST /BankAccounts/{id}/transactions/
POST /BankAccounts/{id}/transactions/{id}

from a relational db (MariaDB)

Milestone 3

PUT APIs

PUT /BankAccounts/
PUT /BankAccounts/{id}
PUT /BankAccounts/{id}/transactions/
PUT /BankAccounts/{id}/transactions/{id}	

from a relational db (MariaDB)

HOW TO BUILD

mvn -U -X -Pall-tests,local-depl-j2se-h2 clean install

HOT TO RUN JETTY

mvn -U -amd -pl ba-services/ba-services-rest-impl-jaxrs/ -Pall-tests,local-depl-j2se-h2 jetty:run

HOW TO LAUNCH A H2 CONSOLE

java -jar ~/.m2/repository/com/h2database/

HOW TO DEPLOY IN JETTY

LINUX:

export BANKANALYZER_SRC_HOME=/path_to/bankanalyzer-he export JETTY_HOME=/path_to_jetty/

cp $BANKANALYZER_SRC_HOME/ba-services/ba-services-rest-impl-jaxrs/target/ba-services-rest-impl-jaxrs-${version}.war $JETTY_HOME/webapps/ && \ mv $JETTY_HOME/webapps/ba-services-rest-impl-jaxrs-${version}.war $JETTY_HOME/webapps/bankanalyzer.war

OAUTH2 & CXF

OAUTH2 flow is called authorization Code and it involves 3 parties:

  • the end user,
  • the 3rd party service (called client)
  • the resource server that is protected by the OAUTH2 filters

Workflow Typically a client offers a service feature that an end user requests. The service feature requires the end user to access one or more protected resources on behalf of this user which are located at the resource server.

bankanalyzer-he's People

Contributors

marcomaccio avatar marcusmaccio avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

marcusmaccio

bankanalyzer-he's Issues

Wrong comparison in Date fields

In the test ITRetrieveTransactionTest the 2 tests:

  • testFindAllTransactionByKeyValues
  • testFindAllTransactionByValueDate
    the two tests fails due to a wrong comparison for the fields date.
    The comparison has to be done as follow: dateA.compareTo(dateB) that return 0

Complete GET API

Implement the following methods:

  • getTransactionByKeyValues (i.e. executionDate, valueDate, amount, currency,bankaccount.iban) that will retrieve only one transaction as these fields compose an unique constraint on the transaction table/BankAccounts/{id}/transactions/?executionDate=<>&valueDate=<>&amount=<>&currency=<>&iban=<>
  • getTransactionByValueDate that will retrieve all the transaction done in a specific date

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.