GithubHelp home page GithubHelp logo

aquila's Introduction

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"

aquila's People

Contributors

cpressland avatar dependabot[bot] avatar haffi96 avatar lupusinfabula avatar renovate[bot] avatar thenu97 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

aquila's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • ghcr.io/binkhq/python 3.12
github-actions
.github/workflows/build.yaml
  • binkhq/actions v1
  • binkhq/actions v1
.github/workflows/test.yaml
  • actions/checkout v4
  • actions/setup-python v5
pep621
pyproject.toml
  • poetry-core >=1.0.0
poetry
pyproject.toml
  • python ^3.12
  • flask <4
  • requests ^2.31.0
  • azure-storage-blob ^12.19.1
  • python-decouple ^3.8
  • sentry-sdk ^1.45.0
  • gunicorn ^22.0.0
  • prometheus-client ^0.20.0
  • ruff ^0.3.0
  • black ^24.3.0
  • isort ^5.10.1
  • xenon ^0.9.0
  • mypy ^1.0.1
  • pytest ^8.0.0
  • ipython ^8.10.0
  • responses ^0.25.0
  • pytest-mock ^3.8.2
  • pytest-cov ^5.0.0
  • refurb ^2.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.