Web service implementing the Aequitas context service.
- Python 3.10+
- Run
pip install -r requirements.txt
to install poetry package manager. - Run
poetry install
to install the project dependencies. Poetry will create a virtual environment that will be used to handle project dependencies.
- Run
docker compose up -d
to start the database. - Starting the web server:
poe dev --port 4005
to run the service in the development mode.poe serve --port 4005
to run the service in the production mode.
- Interact with the service through the Aequitas Frontend
The purpose of requirements file is just offering a quick way to install poetry. Actual dependencies are managed by poetry itself.
You can add new dependencies to the project by running poetry add <package-name>
. This will add the
package to the pyproject.toml
file and install it in the virtual environment.
In order to run the whole test suite:
poe test
If you want to run just unit tests:
poe unit-test
Or just integration tests:
poe intergation-test
This project uses black code formatter.
poe format-check
poe format