I simply recreated this circuit and copied the code from this tutorial into Arduino, exported it to the NodeMCU and voila: it worked!
Breadboard setup for the DC motor. Made by: Daniël van Kesteren
The DC motor working as desired. Made by: Daniël van Kesteren
The next step would be to connect the DC motor to the velostat sensor I created in week 6. I ran into an issue, however. I noticed that, if I removed the resistor and the wire that connects the D1 pin to the resistor, the DC motor would still run when connected. I thought this was strange, considering how I followed the tutorial. NOT FINISHED