No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 91.4%
  • HTML 4.7%
  • Shell 2.6%
  • Dockerfile 1.3%
Find a file
renovate[bot] 9ffcce5f5d
All checks were successful
test / test (push) Successful in 1m23s
Update dependency flask to v3 (#46)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-18 16:07:49 +01:00
.github/workflows Complete upgrade to Python 3.12 (#48) 2024-04-18 16:05:01 +01:00
aquila Complete upgrade to Python 3.12 (#48) 2024-04-18 16:05:01 +01:00
tests Complete upgrade to Python 3.12 (#48) 2024-04-18 16:05:01 +01:00
.gitignore Add mypy_cache to gitignore 2022-10-11 17:39:12 +01:00
Dockerfile Update ghcr.io/binkhq/python Docker tag to v3.12 (#45) 2024-04-18 15:54:37 +01:00
poetry.lock Update dependency flask to v3 (#46) 2024-04-18 16:07:49 +01:00
pyproject.toml Update dependency flask to v3 (#46) 2024-04-18 16:07:49 +01:00
README.md Auto-format README 2022-10-11 17:39:12 +01:00
renovate.json Add auth for Azure DevOps 2024-04-18 11:34:45 +01:00
style.sh bring aquila up to speed with cosmos 2023-03-06 13:02:00 +02:00
wsgi.py add Dockerfile 2022-07-27 16:11:35 +03:00

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"