Skip to content

Latest commit

 

History

History
90 lines (66 loc) · 2.05 KB

README.md

File metadata and controls

90 lines (66 loc) · 2.05 KB

OJP Middleware Documentation

Modules

all modules are single npm packages some are dependent on each other

  • api-ojp
  • api-otp
  • ep-manager
  • tests

learn more

Services

some of modules implement a Docker service running in individual container and associated with a specific port to an Api REST interface.

docker-compose.yml this sets up the infrastructure to make these services interact

  • api-ojp
  • api-otp
  • ep-manager

learn more

Config

each module of project contains a single config.yml file it define contains service configurations

learn more

Structure

Common structure for modules and services is:

  • config.yml
  • index.js
  • package.json

and for services is:

  • Dockerfile
  • env.example(renamed to .env in dev environment)

The basic structure of code:

.
├── modules
│        ├── api-ojp
│        │        ├── services/
│        │        ├── Dockerfile
│        │        ├── index.js
│        │        ├── config.yml
│        │        └── package.json
│        ├── api-otp
│        │        ├── config.yml
│        │        ├── Dockerfile
│        │        └── package.json
│        ├── ep-manager
│        │        ├── download/
│        │        ├── csvs/
│        │        ├── config.yml
│        │        ├── Dockerfile
│        │        ├── import.js
│        │        └── package.json
│        ├── tests
│        │        ├── xmls/
│        │        ├── config.yml
│        │        ├── index.js
│        │        └── package.json
│        └── db
│                 ├── dumps/
│                 ├── data/
│                 └── export.sh
│
├── docker-compose.yml
└── package.json

References

OJP general api docs: https://github.com/VDVde/OJP/tree/markdowns

api requests/response docs:

https://vdvde.github.io/OJP/generated/OJP.html