The BFF is a proxy layer to allow easy access to the pilot microservices from a frontend application. BFF will handling calling the correct APIs to check permissions before calling the microservices.
- The project is using poetry to handle the package. Note here the poetry must install globally not in the anaconda virtual environment
pip install poetry
- git clone the project:
git clone git@github.com:PilotDataPlatform/bff-web.git
- install the package:
poetry install
-
create the
.env
file from.env.schema
-
run it locally:
poetry run python -m app
Add environment variables listed in .env.schema in the docker-compose.yaml file.
Start API with docker-compose:
docker-compose build
docker-compose up
Port can be configured with the environment variable PORT
- API: http://localhost:5063
- API docs: http://localhost:5063/v1/api-doc
poetry run pytest
The development of the HealthDataCloud open source software was supported by the EBRAINS research infrastructure, funded from the European Union's Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3) and H2020 Research and Innovation Action Grant Interactive Computing E-Infrastructure for the Human Brain Project ICEI 800858.