Add HTTP server to Electron application


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/ the server should extract it and serve it. I’m mostly interested in how to bundle the server.


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


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


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