Add HTTP server to Electron application


#1

I was wondering how an HTTP server can be added to an Electron application. The server should serve files, which are stored locally. If a file from inside a zip archive is requested like so /myfolder/myarchive.zip/picture.jpg the server should extract it and serve it. I’m mostly interested in how to bundle the server.


#2

Seems like it would be possible to run an expressjs server??? Never really looked into it but seems fun.


#3

You can use Node.js to create a custom server in electron.


#4

Yes, I ended up running a Node.js server, which already comes bundled with Electron.