Make Desktop Apps!

Why?

Isn't the web supposed to be the best place for apps?

Because Reasons...

Control Over Execution Environment

Access to System APIs

Like Files...

...And Notifications

Simplified / Restricted Interface

Context Sensitive User Interfaces

Everyone Else Is Doing It!

Some Cool Examples

You May Not Have Seen...

Git Kraken

WebTorrent

Fast Lane

Brave

http://electron.atom.io/#built-on-electron

More Apps:

HOWTO:

npm install -g electron-prebuilt
{
  "name": "my-awesome-app",
  "version": "1.0.0",
  "description": "A Desktop version of my awesome app",
  "main": "main.js"
}

package.json

HOWTO:

const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;

let mainWindow;

app.on('ready', createWindow);

function createWindow () {

  // Create the browser window.
  mainWindow = new BrowserWindow({width: 800, height: 600});

  // and load the index.html of the app.
  mainWindow.loadURL('file://' + __dirname + '/index.html');


  // Emitted when the window is closed.
  mainWindow.on('closed', function () {
    // Dereference the window object
    mainWindow = null;
  });

}

main.js

Made with Slides.com