title: Using Electron based app as a web server
body: <p>I'm developing a cross-platform application (Windows/Linux/macOS), which:</p>
  
  <ol>
  <li>Should be able to run locally as a desktop application</li>
  <li>Should be able to run on a remote machine, preferably with the same UI as on local.   </li>
  </ol>
  
  <p>So far <a href="http://electron.atom.io/" rel="nofollow">Electron</a> looks good enough for the first bullet.    </p>
  
  <p>The question is about the second one. I'd like to reuse both the logic and the UI from the local scenario for the remote scenario. In other words, I'd like to use Electron based application as a web server and connect to it via browser.<br>
  Is there any way to do that?</p>