GithubHelp home page GithubHelp logo

georgend / thirdparty-scheme-adapter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mojaloop/thirdparty-sdk

0.0 0.0 0.0 2.72 MB

Thirdparty Scheme Adapter

License: Other

JavaScript 3.46% TypeScript 94.43% Gherkin 0.22% Dockerfile 0.21% Shell 1.67%

thirdparty-scheme-adapter's Introduction

Mojaloop Thirdparty Scheme Adapter

Git Commit Git Releases CircleCI

This package provides a Thirdparty (PISP) scheme adapter that interfaces between a Mojaloop API compliant switch and a Thirdparty backend platform that does not natively implement the Mojaloop API.

The API between the scheme adapter and the Thirdparty backend is synchronous HTTP while the interface between the scheme adapter and the switch is native Mojaloop API.

This package exemplifies the use of the Mojaloop SDK Standard Components for TLS, JWS and ILP and is should be use together with mojaloop/sdk-scheme-adapter

Quick Start

The steps shown below illustrate setting up the Mojaloop Thirdparty Scheme Adapter locally and how to run Inbound and Outbound API services listening on localhost

  1. Clone repo

    git clone [email protected]:mojaloop/thirdparty-api-adapter.git
  2. Install dependencies

    npm install
  3. Modify the hosts to setup local DNS for Redis

    127.0.0.1 redis
  4. Start Redis container through docker-compose in a separate terminal window

    docker-compose up redis
  5. Start Inbound API server

    npm run start:inbound

    then visit in your web browser http://localhost:4005/health

    In case to start the test environment

    NODE_ENV=test npm run start:inbound
  6. Start Outbound API server

    npm run start:outbound

    then visit in your web browser http://localhost:4006/health

    In case to start the test environment

    NODE_ENV=test npm run start:outbound

Inbound & Outbound API

This package delivers implementation Inbound and Outbound API services which will be used by Thirdparty to integrate with Mojaloop Switch

Inbound API

Inbound API service is called by Mojaloop Switch.
Its responsibility is to forward calls to Thirdparty Backend or help to deliver synchronous response for calls initiated by Thirdparty backend on Outbound API

Outbound API

Outbound API service is used by Thirdparty backend to make a call to Mojaloop Switch
Its responsibility is to transform asynchronous Mojaloop API native interface's set of calls to a synchronous call.

Integration Test

To run integration tests, first start docker-compose inside docker folder in a separate window.

cd docker
docker-compose build && docker-compose up

Then run the following command

npm run test:integration

Contribution

Read the contributing.md doc

thirdparty-scheme-adapter's People

Contributors

chbhernani avatar eoln avatar kleyow avatar lewisdaly avatar sridharvoruganti 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.