I wonder if someone can give me an example about how \"node-remote\" works if I want to run some of the logic/functions of my application from the server.
Like, I don\'t
Sicne this has been posted "node-remote" has change slightly. Here is an example:
"node-remote": "*://*",
Direct Links:
node-remote is used for to expose node.js + nw.gui APIs for html script tags and javascript files coming from your website. That's it! You can use require, objects like global, process in these files.
node-remote parameter itself expects a domain name or ip address of hosts you want nw.js to allow to use node.js APIs for these hosts while other hosts can't access them.
Little example:
package.json and set node-remote parameter to github.com on it.package.json.nw application.https://github.com/ on it.Developer Tools.require('fs').writeFileSync('test.txt', 'Hello, World!'); and hit enter.Now you should see test.txt file in nw's root directory.
test.txt.package.json and remove node-remote field.Now you should see error like "require" is undefined in DevTools console
Hope this helps.