Laundering

How did people wash their clothes before washing machines or even running water in the house?