Code Monkey home page Code Monkey logo

thirdparty-api-svc's Introduction

thirdparty-api-svc

Git Commit Git Releases CircleCI

The thirdparty-api-svc service handles HTTP Requests from the Mojaloop Third Party API

Overview

Runtime Configuration

Runtime configuration is handled by rc, and can be specified using either Environment Variables, or a .json file.

See ./config/default.json for an example config file.

When setting configuration using environment variables, the THIRD_PARTY environment variable prefix is required. See src/shared/config.ts to understand how these variables are configured.

Key Config Options

Note: See ./config/default.json for all available config options, and their default values.

Name Env Var jsonPath Description
PORT THIRD_PARTY_PORT .PORT The TCP port the Hapi server should start on
HOST THIRD_PARTY_HOST .HOST The hostname the Hapi server should bind to
ENDPOINT_SERVICE_URL ENDPOINT_SERVICE_URL .ENDPOINT_SERVICE_URL The internal service used to retrieve endpoints for Mojaloop Participants. Currently this is the central-ledger.

Setup

Clone repo

git clone [email protected]:mojaloop/thirdparty-api-svc.git

Improve local DNS resolver

Add the 127.0.0.1 thirdparty-api-svc.local entry in your /etc/hosts so the thirdparty-api-svc is reachable on http://thirdparty-api-svc.local:3008. Elsewhere use http://localhost:3008

Install service dependencies

cd thirdparty-api-svc
npm ci

Run local dockerized thirdparty-api-svc

npm run docker:build
npm run docker:run

To check the thirdparty-api-svc health visit http://thirdparty-api-svc.local:3008/health

thirdparty-api-svc's People

Contributors

kleyow avatar lewisdaly avatar sridharvoruganti avatar dependabot[bot] 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.