Getting Started Electron

April 4, 2020

You can follow the following steps to run your first Electron application

(1) use npm init command to create your project

(2) Next you can install the electron by running the following command

npm install electron

(3) Next, create the index.js file and add the following code

var electron = require('electron')
var BrowserWindow = electron.BrowserView
var app= electron.app

app.on('ready',function(){
console.log("Ready")
})

(4) Run the following command in your terminal

electron . run this command in your terminal