Programming the Wemos D1 Mini module
An good tool to program and test the module is the Esplorer software. You can download it from https://github.com/4refr0nt/ESPlorer.
Press the button Upload, select the files you want to upload to the Wemos D1 Mini Module and press the Open button. After all files are uploaded you can set RTS button of serial port to enabled and the to disabled to reset the module via the reset pin, or press Reset to make a software reset.
Please read the hints for working in Lua on NodeMcu.