Saturday, November 9, 2019

Angular with Electron JS


Installation
Angular: npm install -g @angular/cli
Electron: npm i -D electron@latest
Electron Packager:  npm install electron-packager -g

What you need to change ?
Create new angular app : ng new appdemo
Create main.js
Update package.json
Update index.html



Command to test electron app: npm run electron-build

Command to create executable: 
      electron-packager . --platform=<platform-name>
e.g.  electron-packager . --platform=win32

Github git clone url:

git clone https://github.com/yogeshjog/Angular-Electron.git

Video Demo:











3 comments:




  1. npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\Rizwa\AppData\Roaming\npm-cache\_logs\2020-08-17T18_38_16_405Z-debug.log

    I am facing this issue

    ReplyDelete