2024-11-08 09:24:02 +01:00
|
|
|
# IWS_clean_architecture
|
|
|
|
|
2024-11-21 22:19:49 +01:00
|
|
|
** Master MDS HSMA **
|
|
|
|
Clean Architecture - Architekturstil am praktischen Beispiel z.B. in Python.
|
|
|
|
|
2024-11-30 18:05:58 +01:00
|
|
|
run python script as a module e.g.: python -m framework_driver.db.db_cart
|
2024-11-21 22:19:49 +01:00
|
|
|
|
2024-12-03 22:44:44 +01:00
|
|
|
## Fast API:
|
|
|
|
- 0: open Terminal
|
|
|
|
- 1: navigate to src: cd .\src\
|
|
|
|
- 2: run main app: uvicorn main:app --reload
|
|
|
|
- 3 go to url: [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs)
|
|
|
|
- 4: close with: strg + c
|
2024-11-21 22:19:49 +01:00
|
|
|
|
2024-11-30 18:05:58 +01:00
|
|
|
## Layers
|
|
|
|
- entities
|
|
|
|
- cart_item.py
|
|
|
|
- cart.py
|
|
|
|
- product.py
|
|
|
|
- use_cases
|
|
|
|
- cart_reporsitory_interface.py
|
|
|
|
- view_cart.py
|
|
|
|
- interfaces_adapters
|
|
|
|
- cart_database_interface.py
|
|
|
|
- cart_repository.py
|
|
|
|
- framework_driver
|
|
|
|
- db
|
|
|
|
- db_cart.py
|
|
|
|
- db_product.py
|
|
|
|
- db_setup.py
|
|
|
|
- db_user.py
|
|
|
|
- shop.db
|
|
|
|
- ui
|
|
|
|
- coming soon ...
|