Skip to content

Learn the Monolith

Twenty mini-lessons. A patient explanation of the stack, from the browser request to the database and back.

Understand what happens between the layers

Section titled “Understand what happens between the layers”

A button click becomes an HTTP request. A dependency identifies the user. A service applies a rule. A transaction changes the database. A response returns to the browser.

This course slows that journey down. Each lesson takes one part of a server-rendered Python monolith, shows the code, and follows what actually runs. Concrete values, repeated snippets, and execution traces let you study the connection between the parts.

The recurring example is a generic document-review application built with FastAPI, Jinja, HTML, vanilla JavaScript, Pydantic, SQLAlchemy, SQLite, and Alembic. The lessons are a curriculum for understanding that stack. You can read them without assembling an application.

Created and curated by Max Braglia. Originally written with ChatGPT for breakfast reading, then corrected and refined with Codex. Read the story.

Read in order, revisit a familiar topic, or search for an explanation or code identifier. Every lesson has its own section links and contents list.