0.0.1 • Published 4 years ago

connect-customer-api v0.0.1

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

connect-customer-api

Microservice responsible for creating and managing customer records

Pre-requisites

  • Migration file
  • SQL Database Access
  • Unit and integration tests
  • Keycloak server for authorization

Environment Variables

NODE_ENV=develop
LOG_LEVEL=info
API_LOGGER=true

PORT=3000

DB_CONNECTION_STRING=mysql://<username>:<password>@<connection_ip>:<port>/<default_db>
CONNECT_URLS='{"connect": "connect"}'
CONNECT_TOPICS={"connect": "connect" }
GOOGLE_APPLICATION_CREDENTIALS=<your google service-account.json path>
GOOGLE_APPLICATION_PROJECT=mclinica-dev
SWAGGER_BASE_PATH=/

Steps to allow all users to view terms and condition url

  1. Go to https://console.cloud.google.com/storage/browser/mclinica-dev.appspot.com?project=mclinica-dev
  2. Go to Permission tab
  3. Click Add members
  4. Select "allUsers"
  5. Click Select a role
  6. Select Storage And Storage Object Viewer.

NOTE: GOOGLE_APPLICATION_CREDENTIALS is only used in local development if an UnhandledPromiseRejectionWarning: Error: Resource not found error is encountered.