And you’ll find it very similar to the way you program your Arduino. NodeMCU is a firmware that allows you to program the ESP8266 modules with LUA script. Why flashing your ESP8266 module with NodeMCU?
You can also checkout my other tutorial on how to create a web server with an ESP8266 running NodeMCU firmware.
If you’re new to the ESP8266 WiFi module, first read my Getting Started Guide with the ESP8266.