title: Convert Angular Framework Application to desktop application using Electron
body: <p><strong>Project Description:</strong></p>
  
  <hr>
  
  <p>I have a functional front-end angularjs application that communicates with another back-end Java application deployed in <strong>tomcat</strong> running on different port(8443). I have been running it on a web browser but now i want to run it as a desktop application. I have been running it as <code>grunt serve</code> for development environment and <code>grunt --clean --prod</code> for production and distribution.
  When run in <em>dev</em> mode using <code>grunt serve</code>, the application runs on <a href="http://localhost:9000/?baseApiUrl=https://localhost:8443&amp;tenantIdentifier=demo" rel="nofollow noreferrer">http://localhost:9000/?baseApiUrl=https://localhost:8443&amp;tenantIdentifier=demo</a></p>
  
  <p><strong>Question:</strong></p>
  
  <hr>
  
  <p>How do i go about making the application run in electron for <em>dev</em> mode and later package it for production? I tried <a href="https://stackoverflow.com/questions/38708419/how-to-port-an-existing-angular-app-to-electron">How to port an existing angular app to electron?</a> but it can't communication with the backed application on the port.</p>
  
  <p>Please help.</p>