Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.06 KB

readme.md

File metadata and controls

41 lines (26 loc) · 1.06 KB

Clean Architecture Example Project

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

Design

General overview

  • 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

General Overview

Use-case overview

Use-case Overview