This video tutorial shows you step-by-step how to flash the nodeMCU LUA Firmware to the ESP-1 (ESP8266) and to test if it works.
The actual programming is shown in Part 2: http://youtu.be/G4ArTQ_KWs4
EDIT: Find the firmware here now: https://github.com/nodemcu/nodemcu-firmware/releases/