  This survey article is based on 10 lectures that we gave at the September
2019 Hausdorff School in Bonn on "the Emerton--Gee stack and related topics",
and the sections correspond to the original lectures. We have retained the
somewhat informal style of some of these lectures, but have filled them out
with further details.
