Preparing the Machine and Portafilter. 1  1. Heat the espresso machine. 2  2. Fill the machine's tank with water. 3  3. Remove the portafilter and put it on a scale.  4. Dose the 1  espresso. 5. Tamp the espresso in the portafilter.