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
Building Desktop Applications with Electron, JS...
Search
Steve Kinney
October 07, 2016
Technology
2
170
Building Desktop Applications with Electron, JSConf Colombia 2016
Steve Kinney
October 07, 2016
Tweet
Share
More Decks by Steve Kinney
See All by Steve Kinney
Introduction to Testing
stevekinney
0
22
Web Security, Frontend Masters
stevekinney
0
1.2k
Making Music with the Web Audio API, JSConf Colombia 2023
stevekinney
0
64
React and TypeScript, Turing School
stevekinney
0
210
Redux Workshop, 2021-05-05
stevekinney
2
2k
TypeScript and React Utility Types
stevekinney
1
170
A Gentle Introduction to GraphQL Resolvers
stevekinney
1
150
React State
stevekinney
11
10k
React State: useEffect and Custom Hooks
stevekinney
0
220
Other Decks in Technology
See All in Technology
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
480
Taming you application's environments
salaboy
0
190
TypeScript、上達の瞬間
sadnessojisan
46
13k
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
150
TypeScriptの次なる大進化なるか!? 条件型を返り値とする関数の型推論
uhyo
2
1.7k
BLADE: An Attempt to Automate Penetration Testing Using Autonomous AI Agents
bbrbbq
0
310
Terraform CI/CD パイプラインにおける AWS CodeCommit の代替手段
hiyanger
1
240
Why does continuous profiling matter to developers? #appdevelopercon
salaboy
0
190
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
310
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
120
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.3k
サイバーセキュリティと認知バイアス:対策の隙を埋める心理学的アプローチ
shumei_ito
0
380
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
65
11k
How to Ace a Technical Interview
jacobian
276
23k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
120
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Fireside Chat
paigeccino
34
3k
Gamification - CAS2011
davidbonilla
80
5k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Scaling GitHub
holman
458
140k
Done Done
chrislema
181
16k
Transcript
http://bit.ly/electron-jsconfco Clone down the two repositories and run npm
install in each.
Building Desktop Applications with Electron Steve Kinney — @stevekinney JSConf
Colombia 2016
Hi. I'm Steve @stevekinney
http://turing.io
http://dinosaurjs.org
http://bit.ly/electronjs
None
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.
None
None
None
None
sindresorhus/caprine
Why is Electron so super cool?
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.3
Node: 6.5.0 Chromium: 53.0.2785.113 V8: 5.3.332.45
None
None
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
hij1nx/levelui
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-prebuilt
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
None
versus
None
None
None
None
None
None
None
No good.
None
electron.remote
None
None
None
None
None
None
None
None
None
Building a menu
electron.Menu
None
None
None
None
None
None
None
None
electron.globalShortcut
electron.globalShortcut
electron.globalShortcut
And more…
None
None
None
None
None
None
Let's get started.
None
npm install electron-prebuilt
npm install menubar
None
None
What about JSX or SASS or LESS?
npm install electron-prebuilt-compile npm install electron-packager-compile
What about Ember CLI?
ember install ember-electron
npm install electron-packager
None
None
sindresorhus/awesome-electron
None
Turing School: http://turing.io Electron in Action: http://bit.ly/electronjs ¡Gracias! Twitter: @stevekinney