- Write a minimal MVC-"App"
- (over-engineered "Hello <Name>")
- Model: stores the name
- View: Displays/ask for the name
- Controller: the glue between Model/View
- Add a configuration object
- Add a logger object
- (over-engineered "Hello <Name>")
--
- Set up dependency injection
- Manually
- Use a DI-Framework
- Write a mini DI-Injector
git clone https://github.com/cammarb/mvc_cop && cd mvc_cop
python3 -m venv venv
py -3 -m venv venv
. venv/bin/activate
venv\Scripts\activate
pip install -r requirements.txt
python3 run.py
py run.py