From the asymmetric simple exclusion processes to the stationary measures of the KPZ fixed point on an interval