Is there anything what should pay attention to when doing gastroscopy?

To do gastroscopy, to prepare what? Pay attention to what? Does it hurt? How long does it take to eat after finishing? I’ll tell you all about a picture.