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()
  }
})

4.25
4

                                    mkdir my-electron-app && cd my-electron-app
npm init -y
npm i --save-dev electron

4.25 (4 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
quick start electron electron app quickstart Quick Start Guide Electron electron tutorial quickstart install electron quickstart electron js quick start electron quick setup electron run how to settup electron write an electron app how to initialize electron electron hello world create electron app how to make a new electron project electron development in a nutshell hello world electron make a new electron js project make a new electron js projects how to make a electron app how to use js in electron js create new electron app electron js make app start at astrup node js electron tutorial electron js run how to make an electron app electron js getting started electron getting startd how to start electron electron.main what is required to run an electron app getting started with electron electron quick start guide electron js how to start this is the first program in electorn js electron hello app how to use electron electron app tutorial run electron project electron init commands electron javascript how to run electron app quick started electron create-electron-app npm writting your first electron app electron init electron main.js electron app quick start template make electron app Electron JS From HTML To Electron setup electron js project electron setup electron js run node js file run electron app electron open app electron.js electron quick start command npm start electron app electron js start electron js run in node electron file framework open application with electron electron base how to get started with electron js electron main script file create electron app command electron main file how to create electron js project electron frontend local file system how to start with electron base electron project create an electron app react native electron quick start how to start using electron.js basic tutorial electron electron system programming electron quickstart init electron project electron project initializer electron example electron basic example electron run app build my first electron app how to get started with electronjs simple electron and nodejs app electron app usage guide tutorial build javascript electron app node can start electron electron start how to start a new electron js project how to use electron js electron tutorial how to make electron electron quick start electron js tutorial learn javascript with electron electron starter electron index file ellectron js tutorial electron guide electron getting started electron run project electron get started electron desktop app tutorial learn electron js how to start a new project in electron js electron node js tutorial electron app starter electron getting startedguide how to get into electron electron js create new project electron quickstart guide
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source