This project is a complete-rewritten version of official Flask tutorial using Hexagonal Architecture
The project has 2 main dependencies:
You can read it from original author:
The Pattern: Ports and Adapters
Layers:
Hexagonal View:
TBD...
Use virtualenv as:
python3 -m venv .venv
source .venv/bin/activateWe use flit for the installation:
- Install flit:
pip install flit==3.8.0- Install using make command for development:
make install-dev- Init the database
make init-db- Start development service:
make run- Format, sort the imports and also check the style
make format- Run linter for final check
make lint- Run tests all non-slow and non-integrated tests
make test- Run slow tests
make test-slow- Run integration tests
make test-integration- Run test coverage
make test-cov- Run type check
make type-check- Run security check
make secure