Protean example implementation
Source | DDD by Examples - Library |
Pattern | CQRS |
Protean Version | 0.12.1 |
Build Status | |
Coverage |
-
Clone this repository:
git clone [email protected]:proteanhq/library-cqrs.git
-
Set up and activate Python virtual environment:
python3 -m venv .venv
source .venv/bin/activate
-
Install poetry
-
Install dependencies:
poetry install
-
Install pre-commit hooks:
pre-commit install
-
Catalogue domain:
FastAPI Server:
fastapi dev src/catalogue/main.py
-
Lending domain:
Protean Server:
PROTEAN_ENV=dev protean server --domain lending.domain
-
Basic:
make test
-
With coverage:
make test-cov