The ESP8266 module is a cheap Wireless module.
The fastest way to program it is to use a usb converter.
When you get this usb converter, you cannot use it for programming.
You need to make some changes.
You will see how this is done in the drawings above.
1- You need to connect the GPIO0 pin with GND.
2- Also, connecting the Reset pin with GND will be useful.
The completed version of the project will look like this.