Skip to content

ck29/tf-transaction-management-service

Repository files navigation

transaction-management-service

Java CI with Gradle

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage

About The Project

The transaction-management-service is an application to simple transaction. The operations provided the services can be easily integrated with any UI. The service also provides simple transaction operation.

The service is built using spring boot with H2 in memory database. It can also run as a persitent database on local machine.

(back to top)

Built With

The service is build using following frameworks/languages.

  • Java
  • Junit
  • Spring boot
  • Git
  • Gradle
  • H2 embedded
  • Git action (CI)

(back to top)

Getting Started

Clone the project and get the prequisites setup.

Prerequisites

Make sure the following tools are installed on your local machine.

  • Java

    apt-get install openjdk-17-jdk
  • Git

    apt-get install git
  • Gradle

    apt-get install gradle

Installation (Manual)

  1. Clone the project.

    git clone https://github.com/ck29/tf-transaction-management-service.git
    
  2. Clean and build

    cd tf-transaction-management-service
    gradlew clean build
  3. Start application

    java -jar build/transaction-management-service-0.0.1-SNAPSHOT.jar
    
    

Usage

  1. Once the application is running, we can query the API using various method. The details about the endpoints are available using openapi specification. The specification can be downloaded using following link.

    Swagger(Open API Specification)

Create new transaction

   POST /tf/service/transaction/new HTTP/1.1
   Host: localhost:8085
   Content-Type: application/json
   {
  "recipientAccount": "NL66ABNA0112234968",
  "senderAccount": "NL04ABNA0169208646",
  "amount": 550,
  "transactionMessage": "test_message"
   }

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages