Giter Club home page Giter Club logo

nextneo-bank's Introduction

Nextneo Bank Project

Nextneo Bank Project

Java SOA project that provides a bank service.

  • Web module was used: JSF 2.2, Primefaces 6, Spring 5 running on Tomcat
  • Service modules were used: EJB 3.2, JPA 2 running on JBoss Wildfly

Software Design

Requirements

  • JDK 8
  • MySQL
  • Tomcat 9 (web module)
  • Application Server (JBoss Wildfly or similar)

Configure

Database

JBoss Wildfly

  • go to /modules/system/layers/base/com/

  • Create a folder /mysql/main/

  • add mysql connector jar

  • create a file module.xml with:

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql">
  <resources>
    <resource-root path="mysql-connector-java-5.1.24-bin.jar"/>
  </resources>
  <dependencies>
    <module name="javax.api"/>
  </dependencies>
</module>
  • modify the standalone.xml file in /standalone/configuration/ with:
<datasource jndi-name="java:/bank" pool-name="bank" enabled="true" use-java-context="true">
    <connection-url>jdbc:mysql://localhost:3306/bank</connection-url>
    <driver>com.mysql</driver>
        <pool>
            <min-pool-size>10</min-pool-size>
            <max-pool-size>100</max-pool-size>
            <prefill>true</prefill>
        </pool>
        <security>
            <user-name>root</user-name>
            <password>root</password>
        </security>
</datasource>

Info

API Services - Customer Service

/bank-customer-ws/customer

request
{"name": "Milton", "lastName":"Friedman", "document": "50300007124"}
response
{
    "id": 3,
    "name": "Milton",
    "lastName": "Friedman",
    "document": "50300007124",
    "user": {
        "id": 3,
        "lastAccess": null,
        "login": "50300007124",
        "password": "4CE74kEbxjt5hmE3o/+jfQ==",
        "type": "CUSTOMER",
        "groupRoles": null
    }
}

/bank-customer-ws/account/addAccount

request
{"branchNumber": "1618", "accountDigit": "5", "status": "ACTIVE", "type": "CHECKING_ACCOUNT", "currencyId": 1, "usersId": [1]}
response
{
    "id": 1,
    "branchNumber": "1618",
    "accountNumber": "001000",
    "accountDigit": "5",
    "status": "ACTIVE",
    "type": "CHECKING_ACCOUNT",
    "currencyId": 1,
    "usersId": [
        1
    ]
}

/bank-customer-ws/account-movement/addAccountMovement

request
{"accountId":1, "value": "55.00", "description": "TEST", "type":"CREDIT"}
response
{
    "launchDate": 1521254177646,
    "value": 55,
    "auth": "835755570",
    "description": "TEST",
    "accountBalance": 240,
    "type": "CREDIT",
    "accountId": 1
}

nextneo-bank's People

Contributors

dependabot[bot] avatar ortizraf avatar

Watchers

 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.