Run Electron App on a Local Server


#1

Hello!

I would like to run my app on a local server - like http://localhost:8000 or http://127.0.0.1:8000. 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.


#2

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.