https://www.instructables.com/id/Gettin ... 266-ESP32/
This is an instructable for a basic framework for building MicroPython projects on ESP8266.
More than just a tutorial for getting started with MicroPython, this framework also has key core components for a stable IoT project code out-of-the box.
Best regards