0.1.1 • Published 2 years ago

registry-oracle v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Prerequisites

  • MySQL/MariaDB
    • Database name should exists/create as defined inside .env file.
    • Database username/password should exists/create as defined inside .env file.

Run with

  1. npm install
  2. npm run start when you are inside <rootProject>/packages/registry-oracle or npm run registry-oracle:start when you are at rootProject directory.

Configuration

Environment VariablesDefault ValuesDescription
NODE_ENVdevelopmentSpecifies the environment in which the Node.js app is running. Common values are development, production, test, etc.
HOST0.0.0.0The host IP address on which the server will listen.
PORT8888The port on which the server will listen.
MySQL Database Configuration
DB_HOSTlocalhostHostname or IP address of the MySQL database server.
DB_PORT3306Port number for the MySQL database server.
DB_USERNAMEregistry_oracle_userUsername for MySQL database authentication.
DB_PASSWORDpasswordPassword for MySQL database authentication.
DB_DATABASEmerchant_registry_oracleName of the database to use in MySQL.
RabbitMQ Configuration
RABBITMQ_HOST127.0.0.1Hostname or IP address of the RabbitMQ server.
RABBITMQ_PORT5672Port number for the RabbitMQ server.
RABBITMQ_USERNAMEguestUsername for RabbitMQ server authentication. (Change in production)
RABBITMQ_PASSWORDguestPassword for RabbitMQ server authentication. (Change in production)
RABBITMQ_QUEUEacquirer_to_registryName of the RabbitMQ queue to use.
Alias Generation Configuration
ALIAS_CHECKOUT_MAX_DIGITS6Maximum number of digits for alias checkout.
API Key Generation Configuration
API_KEY_LENGTH64Length of the generated API key.
API_KEY_PREFIXMRPrefix for the API key. (MR for Merchant Registry)
Log Configuration
LOG_PATH./logsPath where logs will be stored.
LOG_LEVELdebugLevel of logging detail. Common values are trace, debug, info, warn, error, etc.
LOG_DISABLEDfalseFlag to enable or disable logging.