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

  • flask
  • blueprint
  • CORS
  • JSON responses
  • easy debugging
  • health check endpoint
  • logging
  • multiple environments
  • flake8 for static analysis
  • yapf for 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)