The two electrodes are metals as they need to be able to conduct electricity
The electrolyte is a liquid that contain ions that will react with the electrodes
The chemical reactions between the electrodes and electrolyte set up a charge difference between the electrodes
If the electrodes are connected by a wire, the charge will flow and electricity is produced
A voltmeter can be used to measure the voltage