The battery needs to be connected to the B+ and B-
The + and - connect to a 5V power supply (used to charge the batteries).
OUT+ and OUT- connect to the 3.7V to 5V boots converter
The output of the boost converter connects to the ESP Vin and GND
You can't charge the battery and power the ESP at the same time.
You need to disconnect the OUT+ from the boost converter when charging the battery.
You need to disconnect the + when powering the ESP from the battery.