Public portfolio site showing statistics for the 2023–24 Bundesliga season.
Stack: FastAPI, HTMX, Jinja2, Pandas, SQLAlchemy, SQLite
pip install -r requirements.txt
python main.pyThe app uses the bundled my_database.db in the repo (read-only). No separate database service is required.
Deployment uses Docker (Dockerfile) so Python 3.12 is fixed — Render’s default (3.14) breaks older pandas builds.
- Sign in at render.com and connect GitHub (grant access to
W-ren-P/bundesliga-analytics-fastapi-htmx). - New → Blueprint → repo
bundesliga-analytics-fastapi-htmx(usesrender.yaml),
or New → Web Service → same repo → set Language to Docker. - If an existing service still uses “Python” runtime: Settings → Runtime → Docker, or delete and recreate from the Blueprint.
- Sync Blueprint after pulls if you use Blueprint.
- Deploy. Use the
https://….onrender.comURL on your CV/LinkedIn.
If you must use Render’s native Python runtime (not Docker), add environment variable PYTHON_VERSION = 3.12.8 in the service Environment tab and redeploy.
Free tier services sleep after ~15 minutes of no traffic; the first visit after that may take 30–60 seconds to wake up.
See docs/DB.md. Sample data is in sample_data/.
Original Flask + PythonAnywhere version: bundesliga-analytics