This project was created as an example implementation of the Clean Architecture (as well as Hexagonal Architecture, Ports & Adapters Architecture) with an http controller.
Installation:
pip install -r pip-requirements.txt
Running the http server:
python -m src.http_app
Running the example script:
python demo_http_queries.py
Running the unit tests:
./scripts/tests.sh
- Project configuration and entrypoint happens in
__main__.App
- The controller is implemented in
http_controller.py
, it builds the request model object and forwards it to the use case - Each use case is implemented in its own package:
create_user
,activate_user
,get_user