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
Primeiros passos com Electron
Search
Raphael Porto
November 23, 2015
Programming
91
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Primeiros passos com Electron
Raphael Porto
November 23, 2015
More Decks by Raphael Porto
See All by Raphael Porto
A jornada do React Native na Globo.com
raphaelpor
2
550
Desvendando o Electron
raphaelpor
3
120
Other Decks in Programming
See All in Programming
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
430
テーブルをDELETEした
yuzneri
0
150
ソフトウェアエンジニアにとっての生成AI - 特性を知って使い倒す / generative ai for software enginner
kishida
5
1.9k
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
1
140
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
4.8k
Claude CodeとAgentCore Gatewayを繋ぐ際の認証認可 / Authentication and authorization when connecting Claude Code with AgentCore Gateway
har1101
2
330
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
430
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
19k
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
210
the container ship “Apple Silicon”@WWDC26 Recap -Japan-\(region).swift
shingangan
0
130
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
210
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
310
Featured
See All Featured
Everyday Curiosity
cassininazir
0
290
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Evolving SEO for Evolving Search Engines
ryanjones
0
260
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.4k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
490
Joys of Absence: A Defence of Solitary Play
codingconduct
1
440
The Pragmatic Product Professional
lauravandoore
37
7.4k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
350
Rails Girls Zürich Keynote
gr2m
96
14k
Transcript
Electron JS Primeiros passos
Quem sou? Raphael Porto @raphaelpor Cofundador da Desenvolvedor na Concrete
solutions Lithium
O que é o Electron? Framework para criar aplicações desktop,
usando tecnologias web como HTML, CSS e JavaScript.
Quem criou? GitHub
Para quê? Por isso, também é conhecido como Atom Shell
Atom Editor
Do que é feito? io.js + Chromium
Quem usa?
Instalação npm install ‐g electron‐prebuild
Estrutura do Projeto electrontestapp/ ├── package.json ├── main.js └── index.html
package.json { "name" : "electrontestapp" "version" : "0.1.0", "main" :
"main.js" }
index.html <!DOCTYPE html> <html> <head> <meta charset="utf8"> <title>Olá Mundo!</title> </head>
<body> <h1>Olá mundo!</h1> <small> io.js <script> </script> <br> Electron v<script> </script> <br> <script> </script> </small> </body> </html> document.write(process.version) document.write(process.versions['electron']) document.write(process.platform)
main.js var app = require('app'); var BrowserWindow = require('browserwindow'); require('crashreporter').start();
var mainWindow = null; app.on('windowallclosed', function() { if (process.platform != 'darwin') { app.quit(); } }); app.on('ready', function() { mainWindow = new BrowserWindow({width: 800, height: 600}); mainWindow.loadUrl('file://' + __dirname + '/index.html'); mainWindow.on('closed', function() { mainWindow = null; }); });
None
Acesse o código https://github.com/raphaelpor/electron-CS
Conheça mais - Electron Adventures - Awesome Electron - Electron
website