Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Electron at MongoDB: LibertyJS 2016

Electron at MongoDB: LibertyJS 2016

Lucas Hrabovsky

October 01, 2016
Tweet

More Decks by Lucas Hrabovsky

Other Decks in Programming

Transcript

  1. const _ = require('lodash'); const {clipboard, dialog} = require('electron'); window.on('focus',

    () => { const text = clipboard.readText(); if (_.startsWith(text, 'mongodb://')) return; dialog.showMessageBox({ message: `Would you like to connect to `${text}`?`, buttons: ['Yes', 'No'], }, (yes) => { if (!yes) return; // Update form from parsed `${text}` }); });
  2. Desktop apps with web technologies is not new... • nw.js

    • breach • macgap • Adobe brackets-shell • Google Chrome Apps • appjs
  3. (cont.) • Mozilla Chromeless • Mozilla Prism • Titanium •

    Adobe Air • Google Gears • QT • Mozilla XULRunner
  4. Thanks! • @zcbenz, @kevinsawicki, @jlord, @zeke (Electron) • @paulcbetts (Slack)

    • @maxogden, @electron-userland (Community) • @emorikawa (Nylas N1)
  5. Marp Markdown presentation writer (similar to @deckset) Ionic Lab Create,

    build, test, and deploy Ionic apps. Theme Juice WordPress Development Made Easy
  6. electron + meteor.js meteor-electron The easiest way to create a

    desktop Meteor application electrify Easily package your Meteor apps with Electron
  7. Tooling electron-builder A complete solution to package and build a

    ready for distribution Electron app with “auto update” support out of the box electron-prebuilt For dev
  8. ! Additional Platform Specific Features On Windows, applications can put

    shortcuts in the JumpList of task bar, and on Mac, applications can put a custom menu in the dock menu.
  9. Window Management ! BrowserWindow Create and control browser windows. electron-positioner

    Helps positioning your electron windows. Multi Window Electron Desktop Apps
  10. devtools devtron inspect, monitor, and debug your Electron app on

    top of the amazing Chrome Developer Tools electron-devtools-installer Use devtools extensions in Electron like you already are in Chrome: Ember Inspector, React Developer Tools, jQuery Debugger,