How 0ndrec/sample-flask works
Project type and purpose
• This is a minimal server‑rendered web application built with Flask (a Python web microframework), intended to be deployed on the DigitalOcean App Platform (a PaaS).
• It serves HTML templates (no SPA or heavy frontend), and relies on Gunicorn as the WSGI server.
File structure
• Top level:
• app.py ← Flask app entry point
• requirements.txt
• gunicorn_config.py
• Procfile ← proc type for Heroku‑style / buildpack deployments
• .do/ ← DigitalOcean App Platform configuration (app.yaml, deploy.template.yaml)
• templates/ ← Jinja2 HTML templates
• No database or stateful storage by default, but environment variables and external services (e.g., managed databases) can be plugged in via the App Platform UI.
Key insights from the README
• Source is hosted on GitHub; App Platform reads the repo, applies a Python buildpack, builds a container, and deploys it.
• Zero‑downtime deployments via rolling/upgraded containers.
• Global CDN in front of the app for static and dynamic caching.