Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
/ aquila Public archive

Microsite for providing access to reward's info to the end user

Notifications You must be signed in to change notification settings

zyntrixio/aquila

Repository files navigation

Aquila

Microsite for providing access to reward's info to the end user.

Install

  • poetry install
  • create .env or .settings.ini file in the root folder and fill in the required env vars from aquila/settings.py

Running (DEV)

  • Polaris API must be running and the POLARIS_HOST env var should point to it.
  • BLOB_STORAGE_DSN env var must be provided
  • poetry run python wsgi.py

Running with prometheus metrics

  • run PROMETHEUS_MULTIPROC_DIR=/tmp OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES gunicorn --bind=0.0.0.0:[PROJECT_PORT] --bind=0.0.0.0:9100 wsgi:app
  • or run as normal with METRICS_DEBUG set to True

Usage

  • send http GET request to [host][port]/reward?retailer=[retailer_slug]$reward=[reward_uuid]

NB

  • Aquila's /readyz endpoint will check for the existance of a heathz file in the blob storage and will try to contact polaris' /livez endpoint.
  • Aquila implements dynamic versioning so please leave the __version__ set to "0.0.0"