Sign inSign up

terragontech/dcb-integration-channel

By terragontech

•Updated almost 8 years ago

dcb-integration-channel

Image
0

1.2K

terragontech/dcb-integration-channel repository overview

⁠Welcome to the DCB Integration Channel API Project!

The DCB Integration channel is used by partners to retrieve a user_id from a user's msisdn.
We send the traffic through a tunnel on our end.


⁠Get code running

Make sure you have NPM(>5.0.0) and NodeJS(>6.9.0) installed.

Steps:

  • Set environment variables as stipulated in table below
  • npm run start
  • Check base at http://{{dcb_integration_channel_base_url}}

⁠Extra

Tip: You can change the application's configurable items in the config/config.js file at the project root alongside other configurable items.

  • This project makes use of PHP ( apt add php5 ) to triple DES the destination url that we pass to 9mobile. It was a requirement from them.
  • The php was install within the alpine image's container via the DockerFile
⁠Routes
ItemValue
Base/
Channel/get_user_id/?service_id=

⁠See API documentation in Postman collection.

⁠Environment Variables to set
ItemValue
NODE_ENV(development, production, staging)
NODE_PATH./app
DCB_IC_APP_URLURL for the app
DCB_IC_APP_PORTPort for app to run on
DCB_IC_DEFAULT_REDIRECT_URLThe default redirect url to use when the CP doesn't pass one. Must include a trailing backslash
DCB_IC_DOUBLE_OPTIN_URLThe 9mobile Double Opt-in URL to redirect to... Must include a trailing backslash
DCB_IC_GATEWAY_BASE_URLThe Base URL for the gateway for DCB... Must include a trailing backslash
DCB_IC_ROUTING_HEADER_KEYThe Header Routing key for the gateway for DCB
DCB_IC_9MOBILE_TERRAGON_USERNAMEusername for Terragon that 9mobile gave us
DCB_IC_9MOBILE_TERRAGON_KEY9mobile key used to triple DES encrypt the destinationURL
DCB_IC_9MOBILE_TERRAGON_AUTH9mobile auth string to use to decode the JWT token sent to us
DCB_IC_9MOBILE_HIVE_USERNAMEusername for HIVE that 9mobile gave us
DCB_IC_9MOBILE_HIVE_KEY9mobile key for HIVE used to triple DES encrypt the destinationURL
DCB_IC_9MOBILE_HIVE_AUTH9mobile auth string to use to decode the JWT token sent to us for HIVE
DCB_IC_REDIS_HOSTRedis host
DCB_IC_REDIS_PORTRedis Port Number
DCB_IC_REDIS_USERThe Username For The Redis Instance
DCB_IC_REDIS_PASSPassword For The Redis Instance
DCB_IC_REDIS_DBThe Redis DB number
DCB_IC_RABBIT_HOSTRabbitMQ host
DCB_IC_RABBIT_PORTRabbitMQ Port Number
DCB_IC_RABBIT_USERRabbitMQ user
DCB_IC_RABBIT_PASSRabbitMQ user's password
DCB_IC_ELASTICSEARCH_HOSTElasticsearch host - (Not Used For Now)
DCB_IC_ELASTICSEARCH_PORTElasticsearch Port Number - (Not Used For Now)
DCB_IC_ELASTICSEARCH_LOG_LEVELString(error, warning, info, debug, trace) - (Not Used For Now)
DCB_IC_LOG_LEVELString(error, warn, info, verbose, debug, silly)
DCB_IC_LOG_ENABLE_CONSOLEBoolean(true/false)

Tag summary

Content type

Image

Digest

Size

52.5 MB

Last updated

over 8 years ago

docker pull terragontech/dcb-integration-channel