Write your first app in Electron

After installing Electron, with the following steps we can create a Electron app from scratch.

  1. Create an empty folder for storing your app files.
  2. Open terminal/command line and run npm init from that very folder.
  3. npm will guide you through creating your package.json file.
  4. Create main.js or index.js(default) file along with index.html file.
  5. After creating package.json, main.js and index.html files you can try your app by running npm start  from your application directory.

Leave a Reply

%d bloggers like this: