I am having an extremely difficult time with trying to turn my current Node.js application into a desktop app using Node Webkit. Without using webkit, my application works perfectly. I start my server using "Node app.js" in the terminal. Then, when I connect to localhost:8080, the client connects and the index.html page is loaded; the app then works perfectly. I need all this to happen from a desktop app and am thus using Node webkit.
I can't figure out how to get all this to happen using Node webkit. I have searched online for hours and this seems to be a common problem but no one has a decent and easy-to-follow solution. If someone could please help me it would be greatly appreciated.
Also on a side note, I have tried loading my node.js file first by using the "node-main" property in my package.json file, but this does not work. For some reason, the "node-main" property crashes my webkit app every single time I try to use it.
If anyone can provide a clear walkthrough of how to implement all this into a single node webkit app that would be very helpful. Thanks!