This is a simple ‘Hello World’ tutorial to get you quickly started.
Run the following command to install electron prebuilt globally
npm install -g electron
In its most basic form, an electron app requires 3 files:
index.html. So your folder structure should look like this;
/electron-hello-world/ - package.json - main.js - index.html
Download the files (package.json, main.js, index.html) and save them in a folder.
Run the following command to build the application
Once you’re ready to move on to something more exciting, you can check out a couple of simple electron apps here.
15 October 2018