DDHUB Client Gateway is a set of applications to communicate with DDHUB Message Broker.
This repository contains several applications.
This application allows us to configure client gateway backend
Communicates directly with message broker for topics, messaging etc.
Retrieves and caches data for performance purposes
After configuring environment variables (in .env
file) run following commands
Set environment variable DB_NAME
as described in Environment Variables section
npm run migrations:build
npm run migrations:run
$ npm ci
$ nx serve dsb-client-gateway-scheduler
$ nx serve dsb-client-gateway-api
$ nx serve dsb-client-gateway-frontend
$ npm ci
$ nx build dsb-client-gateway-scheduler
$ nx build dsb-client-gateway-api
$ node dist/apps/dsb-client-gateway-api/main.js
$ node dist/apps/dsb-client-gateway-scheduler/main.js
Running pure node
in production is not recommended. Use any process manager (pm2, docker etc.) for stability.
You can find docker images in ci
directory.
For more details please refer to Deployment Guide
To configure cypress tests we need to configure env. vars listed in cypress/plugins/index.js
After that we have to setup cypress/{ENV_NAME}/identity.json
file.
Swagger is available on route {{API_HOST}}/docs
.
Postman collection to import is available under ${{API_HOST}}/docs-json
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.