There are two common ways the ESP8266 is used by the Arduino community:
As a WiFi adapter module controlled by a standard Arduino board (e.g., Uno, Mega) over a serial connection using AT commands. In this usage, you will be writing Arduino sketches for and uploading to the standard Arduino board, not the ESP8266.
As a standalone Arduino board. In this usage, you will be writing Arduino sketches for and uploading directly to the ESP8266.
It sounds like you are attempting the first usage but the Firebase library you are using is written for the second usage. You can only use that library when you are directly programming an ESP8266.
I'm sorry to tell you, but that tutorial is wrong. The code and library is written for the second usage I described above, but the wiring diagram is for the first usage I described above. The code can't work for the first usage.
If you look around, you might find a different library that allows using Firebase with the first type of usage. I know there is an option like this for Blynk.