Build a Desktop Application with Electron and Angular

Originally published at: https://www.sitepoint.com/build-a-desktop-application-with-electron-and-angular/

In this tutorial we’ll build a cross-platform desktop application with Electron and web technologies such as TypeScript and Angular. Electron.js is a popular platform for building cross-platform desktop apps for Windows, Linux and macOS with JavaScript, HTML, and CSS. It’s created and maintained by GitHub and it’s available under the MIT permissive license. It was initially created for GitHub’s Atom editor, but has since been used to create applications by companies like Microsoft (Visual Studio Code), Facebook, Slack, and Docker. Electron makes use of powerful platforms like Google Chromium and Node.js, but also provides its own set of rich APIs for interacting with the underlying operating system. Electron provides a native container that wraps web apps so they look and feel like desktop apps with access to operating system features (similar to Cordova for mobile apps). This means we can use any JavaScript library or framework to build our application. In this tutorial, we’ll be using Angular. Prerequisites For this tutorial, you will need to have these prerequisites covered: Familiarity with TypeScript and Angular. Node.js and npm installed on your development machine. Installing Angular CLI Let’s get started by installing Angular CLI, which is the official tool for creating and working with Angular projects. Open a new terminal and run the following command: npm install -g @angular/cli We’ll install the Angular CLI globally on our system. If the command fails with the EACCESS error, add sudo before your command in Linux or macOS, or run the command prompt as an administrator in Windows. If the…

Thanks for this detailed documentation. But when I try to run this, I am getting the error

Failed to load module script: The server responded with a non-JavaScript MIME type of “”. Strict MIME type checking is enforced for module scripts per HTML spec.

I tried many solutions described in various websites. But none of them helped.

How can I overcome this? Please help

Hi, thanks for this. I have created and runing the app.
but how to create the exe, and dmg files.