A Flask starter scaffold — I had mostly written small Python scripts before, and this project was a chance to build a proper backend skeleton.
1. Features we need
flaskblueprint- CORS
- JSON responses
- easy debugging
- health check endpoint
- logging
- multiple environments
flake8for static analysisyapffor formatting- JWT tokens
- password hashing
- MySQL
- Sphinx docs
- Postman collections
- tests
- XSS mitigation (ORM + escaping)
- parameter integrity — SHA-1 (mitigate MITM tampering)
- timestamp validation (replay / DoS-style attacks)