Make snips connect to nodemcu

My nvidia jetson packed up a couple of days ago, I want to write a code to connect snips on my desktop and nodemcu to switch ON and OFF the light. I need assistance in making this work. I’ve been able to install snips on ubuntu linux but haven’t gone any further. A bit new here.