Answers for "electron setup"

5

electron quickstart guide

const { app, BrowserWindow } = require('electron')

function createWindow () {
  const win = new BrowserWindow({
    width: 800,
    height: 600,
    webPreferences: {
      nodeIntegration: true
    }
  })

  win.loadFile('index.html')
  win.webContents.openDevTools()
}

app.whenReady().then(createWindow)

app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') {
    app.quit()
  }
})

app.on('activate', () => {
  if (BrowserWindow.getAllWindows().length === 0) {
    createWindow()
  }
})
Posted by: Guest on November-24-2020
1

electron setup cmd

1) Make sure node.js is installed on your machine

2) CD into your directory

3) Crete a json package using the following command:
npm init

4) Install the electron module using the following command:
npm install --save-dev electron
Posted by: Guest on September-25-2020
0

install electron

npm install electron --save-dev
Copy
Posted by: Guest on January-15-2021
1

electron quickstart guide

mkdir my-electron-app && cd my-electron-app
npm init -y
npm i --save-dev electron
Posted by: Guest on November-24-2020
-1

js electron setup

npm install electron --save-devCopy
Posted by: Guest on November-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language