0.0.1-security • Published 1 year ago

phixius-nacha-csp-service-api v0.0.1-security

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Nacha-CSP

Prerequisites

  1. Install Docker for Mac, or Docker for Windows

  2. Install and start dotdocker

dotdocker start
  1. This project is private and also depends on other private packages hosted on EYBlockchain's private npm registry. In order to use it, first follow the developer instructions here to configure npm.

  2. You need to login to docker in order to be able to pull these images from ACR. Please first run the following: docker login phixiuspreprod.azurecr.io -u phixiuspreprod

Note: It will prompt you to enter a password. Please reach out to a team lead for the password.

Getting Started

  1. Clone this repository to your computer: git clone git@github.com:nacha-phixius/phixius-nacha-csp-service-api.git
  2. Run:
cd phixius-nacha-csp-service-api
docker-compose up -d

When docker is done building, the API will be available at http://nacha-csp.phixius.docker.

Configuration

node-config is being used in order to manage config values by mounting in a deafult.json5 file into the /app/config directory, or by setting environment values.

The following configuration is available.

File VariableEnvironment VariableRequiredDefaultDescription
offchainDbUrlOFFCHAIN_DB_URLtrue'postgres://postgres:postgres@127.0.0.1/postgres'URL to connect the postgres database
logLevelLOG_LEVELtrue'dev'log level
azureAppInsightsIKeyAZURE_APP_INSIGHTS_IKEYfalse'contact dev team lead'Azure Application Insights Tracking

Setting Configuration With A Config File

Create a config file in your project, i.e. ./config/default.json5:

{
  "offchainDbUrl": "postgres://postgres:postgres@127.0.0.1/postgres",
  "logLevel": "dev",
  "azureAppInsightsIKey":"699f7060-48a5-*****-**********"
}

Then you need to mount that file into the /app/config/ directory. Make sure to name it default.json5 inside the container, as node-config will automatically load this file and merge it with the default configuration.

Overriding Configuration for Local Development

In order to override config values for local development without having to worry about committing those changes, you can create a ./config/local.json5.

1.0.60

1 year ago

0.0.1-security

1 year ago

1.0.55

1 year ago

1.0.54

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.0.57

1 year ago

1.0.56

1 year ago

1.0.48

2 years ago

1.0.49

2 years ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.53

1 year ago

1.0.52

1 year ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.42

2 years ago

1.0.47

2 years ago

1.0.46

2 years ago

1.0.45

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.40

2 years ago

1.0.41

2 years ago

1.0.37

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.30

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago