Run Electron App on a Local Server



I would like to run my app on a local server - like http://localhost:8000 or My main purpose is to be able to use AJAX request. But I also don’t want to tell users ‘you have to node.js installed on your computer’. I’ve tried many things without any luck. And I really don’t know how to achieve that.

Any help will be appreciated! Thank you in advance.


Electron has Node built in, so you should be fine on that count. If you need to generate a server for whatever reason, you can do so from your Electron app itself.