Node.js and Express Tutorial: Building and Securing RESTful APIs

I love the tutorial but I’m still having an issue trying to wrap my head around how this would be built with something like Electron Builder. All my research I’ve seen of Electron apps with a backend the backend was built within root and not two completely different directories. It seemed a chained command or the usage of prestart in scripts would be used to start the server.

After building I also question the security aspect of it after reading this from Using OAuth in an Electron application on Medium. Sorry if this seems like noob questions just want to make sure I’m considering the security and end process if I want to use Auth0 for a desktop application.