The repository contains a backend to the web application for the NCBiR project.
Check if make is already installed
make --versionIf not, install make
sudo apt install makeInstall virtual environment and all dependencies
make installRun linters check (black, pylama)
make lintCreate a copy of env file, create and start docker containter defined in docker-compose.yml
make runStop and remove container
make downRemove temporary files such as .venv, .mypy_cache, .pytest_cache etc.
make cleanRun unit tests (runs lint stage before)
make testEnsure Docker has been installed before
make runYou can create virtual environment using make:
make installor manually:
# Create and source virtual Environment
python -m venv .venv
source .venv/bin/active
# Install all requirements and dependencies
pip install .
pip install .[dev]
# Init pre-commit hook
pre-commit installAfter creating the container, the swagger will be available at: http://localhost/api/v1/docs
Port can be assign in .env file (default is 5050)