Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Electron, Frontend Masters
Search
Steve Kinney
November 15, 2016
2
300
Electron, Frontend Masters
Steve Kinney
November 15, 2016
Tweet
Share
More Decks by Steve Kinney
See All by Steve Kinney
React_Performance__2022.pdf
stevekinney
0
7
React Performance v2
stevekinney
0
7
Introduction to Testing
stevekinney
0
130
Web Security, Frontend Masters
stevekinney
0
3.4k
Making Music with the Web Audio API, JSConf Colombia 2023
stevekinney
0
110
React and TypeScript, Turing School
stevekinney
0
360
Redux Workshop, 2021-05-05
stevekinney
2
2.2k
TypeScript and React Utility Types
stevekinney
1
200
A Gentle Introduction to GraphQL Resolvers
stevekinney
1
170
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
141
7.3k
Building the Perfect Custom Keyboard
takai
2
680
Code Review Best Practice
trishagee
74
20k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
210
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
65
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
53
First, design no harm
axbom
PRO
2
1.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
250
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
64
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
180
Transcript
Setup Instructions http://tinyurl.com/fem-electron (Pull from master one more time on
each repository if you cloned them yesterday.)
Building Desktop Applications with Electron Steve Kinney — @stevekinney
I'm Steve. @stevekinney
http://turing.io
http://bit.ly/electronjs
http://dinosaurjs.org
Today's Flow Take a 10,000 Foot View Build a Simple
Bookmarking Application Build a More Complicated Markdown Text Editor Build a Menu Bar Application Package an Application Distribution Tour Some of the Finer Points of the Ecosystem
None
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
Let's get started. https://tinyurl.com/fem-electron http://41391da0.ngrok.io
Code time.
Building Menu Bar Applications with Electron
npm install menubar
None
None
Code time.
Distribution
npm install electron-packager
None
Code time.
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
Electron in Action: http://bit.ly/electronjs Turing School: http://turing.io Thank You Twitter:
@stevekinney