Backend-for-frontend service that provides content for fdk portal's organization pages.
% pip install poetry==1.7.1
% pip install nox==2023.4.22
% pip install nox-poetry==1.0.3
% poetry install
ORGANIZATION_CATALOG_URI
DATA_BRREG_URI
FDK_PORTAL_URI
FDK_METADATA_QUALITY_URI
% poetry shell
% gunicorn --chdir src "fdk_organization_bff:create_app" --config=src/fdk_organization_bff/gunicorn_config.py --worker-class aiohttp.GunicornWebWorker
% docker-compose up -d --build
Run default sessions:
% nox
Run specific session:
% nox -s black
% nox -s unit_tests
% poetry run pytest
- Set API_URL env variable to
http://0.0.0.0:8000
- Start wiremock with
docker-compose up
- Go to
http://0.0.0.0:8000/__admin/recorder/
and start recording with target url - Send request to capture
- Stop recording