This Code is part of a blog. Please refer to the blog to make the best use of this code. The link to the blog is here
Install NodeJS from https://nodejs.org/en/
Install Electron forge using the following command
npm install -g electron-forge
Clone the Code using the following command
git clone https://github.com/aditya-sridhar/simple-desktop-app-electronjs.git
Go into the project folder and run the application using the following commands
cd simple-desktop-app-electronjs
npm install
npm start
The application can be packaged using the command
npm run package