Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Introduction to Electron: Turing School Edition
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Steve Kinney
November 30, 2016
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction to Electron: Turing School Edition
Steve Kinney
November 30, 2016
Transcript
130 slides
Building Desktop Applications with Electron Steve Kinney — @stevekinney
None
Electron (née Atom Shell)
Electron (née Atom Shell) A framework for building cross-platform desktop
applications with web technologies.
None
So, why would you want to use this Electron thing?
You want to build an application that has advanced permissions
like accessing the file system.
You want to build a small application that lives in
the user’s menubar or system tray.
You want to build an app that works well offline.
You want to be able to Command/Alt-Tab to your application.
You want to build a GUI for your Node application.
@noopkat
None
None
None
None
sindresorhus/caprine
Why is Electron so super cool?
None
None
Chrome Content Module HTML5 support GPU acceleration Blink and V8
Node 6.5.0 Filesystem access Native modules
None
None
Electron uses a pretty modern build of Chromium. Electron: 1.4.6
Node: 6.5.0 Chromium: 53.0.2785.143 V8: 5.3.332.47
None
None
HTML Imports Shadow DOM Custom Elements Web MIDI API (…and
other hard to draw APIs…)
None
The web browser lives in a kind of sandbox with
a bunch of restrictions in place in the name of security.
None
None
Electron applications have all of the freedom of any other
Node process.
None
require(…);
None
None
None
You get to choose.
None
None
None
None
None
None
None
None
None
None
None
muan/mojibar
How does Electron work?
Let's take a look at a everything from a high
level before we dig in.
npm install -g electron
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
Inherently, offline first.
None
None
None
None
None
None
Building a menu
And more…
None
versus
None
None
None
None
None
None
None
No good.
None
electron.remote
None
None
None
None
None
None
None
npm install menubar
None
None
Distribution
npm install electron-packager
None
None
npm install electron
What about JSX or SASS or LESS?
npm install electron-prebuilt-compile npm install electron-packager-compile
Want better insight into the user's macOS settings?
npm install electron-osx-appearance
What about an application that launches when the OS boots?
npm install auto-launch
Need a graphical user interface for sudo?
npm install electron-sudo
Want to have local shortcuts that aren't menu items?
npm install electron-localshortcut
Want to use the latest and greatest features coming to
JavaScript?
npm install babel-preset-electron
Did watching me try to manage state make you want
to cry?
npm install electron-redux
What about Ember CLI?
ember install ember-electron
None
None
sindresorhus/awesome-electron
None
Fin.
More Decks by Steve Kinney
See All by Steve Kinney
Enterprise UI, v2
stevekinney
0
350
React_Performance__2022.pdf
stevekinney
0
56
React Performance v2
stevekinney
0
100
Introduction to Testing
stevekinney
0
210
Web Security, Frontend Masters
stevekinney
0
4.6k
Making Music with the Web Audio API, JSConf Colombia 2023
stevekinney
0
150
React and TypeScript, Turing School
stevekinney
0
410
Redux Workshop, 2021-05-05
stevekinney
2
2.3k
TypeScript and React Utility Types
stevekinney
1
250
Featured
See All Featured
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
760
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
1
250
Git: the NoSQL Database
bkeepers
PRO
433
67k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
670
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
640
A better future with KSS
kneath
240
18k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
The Curious Case for Waylosing
cassininazir
1
610
The browser strikes back
jonoalderson
0
2k
The SEO Collaboration Effect
kristinabergwall1
1
620