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
node.jsでつくられたものをいろいろ触ってみた
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yasuo424
April 18, 2016
Programming
7.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
node.jsでつくられたものをいろいろ触ってみた
node.js
yasuo424
April 18, 2016
More Decks by yasuo424
See All by yasuo424
freeeのCRE誕生から現在までの歩みとセルフサービスへの挑戦について
yasuo424
1
29k
cloud vision apiで画像認識
yasuo424
1
400
機械学習ってなに
yasuo424
1
1.2k
初心者が機械学習についてふわっと解説してみる
yasuo424
1
500
AWSで冗長化するときに知っておきたいあれこれについてまとめた
yasuo424
0
590
Dockerのことがほんのすこしわかったかもしれない
yasuo424
1
190
Other Decks in Programming
See All in Programming
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
420
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
560
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
130
iOSDC2026登壇資料.pdf
riofujimon
0
170
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
4.7k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
400
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
180
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
270
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
350
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
690
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
220
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3k
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.6k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.9k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Faster Mobile Websites
deanohume
310
32k
The agentic SEO stack - context over prompts
schlessera
0
940
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
How STYLIGHT went responsive
nonsquared
100
6.3k
Abbi's Birthday
coloredviolet
4
10k
Why Our Code Smells
bkeepers
PRO
340
58k
Bash Introduction
62gerente
615
220k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Transcript
node.jsͰͭ͘ΒΕͨͷΛ ͞Βͬͱ͍Ζ͍Ζ৮ͬͯΈͨɻ 2016.04.18ɹͮձɹvol.4
ࣗݾհ ໊લ:ɹϠελΧ ৬छ:ɹόοΫΤϯυΤϯδχΞ ॅॴ: ɹݝʢ৲ބͷۙ͘ʣ ΤϯδχΞྺ:ɹ̍͘Β͍ LIGྺ:ɹ
milkcocoa
milkcocoaͷಛ IoTσόΠεɾεϚʔτϑΥϯɾPC ؒͰ؆୯ʹϦΞϧλΠϜͳσʔλ ͷΓऔΓ͕ग़དྷΔΑ͏ʹͳΔΫ ϥυϓϥοτϑΥʔϜ milkcocoa ΤόϯδΣϦετ ͷͼ͚͢
؆୯ͳνϟοτπʔϧΛ࡞ͬͯΈΔ ඇಉظ௨৴ͱ͍͑ϦΞϧλΠϜνϟοτͰ͠ΐͱࢥͬͯ ݕࡧͯ͠ΈͨΒ… http://liginc.co.jp/web/programming/ server/129348 ·͔͞ͷLIGϒϩάʘ(^o^)ʗ
࣮ԋ ΊͪΌͪ͘Ό؆୯ʹνϟοτΞϓϦͰ͖ͨʂʂ
Electron
Electronͱʁ Mac/Linux/WindowsͰ ಈ͘σεΫτοϓΞϓϦ ࡞͕Ͱ͖Δ HTML/CSS/jsͰ։ൃ ΤσΟλʔͷAtomKobitoͰ࠾༻͞ΕͯΔɻ
Πϯετʔϧ $ npm install -g electron-prebuilt
ͱΓ͋͑ͣ hello, world • package.json • main.js • index.html 3ͭͷϑΝΠϧΛ༻ҙ
{ "name": "hello-electron", "main": "main.js" } QBDLBHFKTPO
ͱΓ͋͑ͣ hello, world // Electron ͷϞδϡʔϧΛϩʔυ͢Δ var app = require('app');
var BrowserWindow = require('browser- window'); var mainWindow = null; // Οϯυ͕ͯ͢ดͨ͡ͱ͖ͷڍಈ Λఆٛ app.on('window-all-closed', function() { if (process.platform != 'darwin') { app.quit(); } }); app.on('ready', function() { // ϒϥβΟϯυΛ࡞Δ mainWindow = new BrowserWindow( { width: 800, height: 600 } ); // main.jsͱಉ͡σΟϨΫτϦʹ͋Δ index.htmlΛಡΈࠐΉ mainWindow.loadUrl( 'file://' + __dirname + '/index.html' ); mainWindow.on('closed', function() { mainWindow = null; }); }); NBJOKT
ͱΓ͋͑ͣ hello, world (࣮ߦ) $ electron .
OS.js
Πϯετʔϧ $ curl -sS http://os.js.org/installer | sh
ىಈ $ cd OS.js $ sh bin/start-dist.sh http://localhost:8000/Ͱଓ͢Δɻ
ghost
Πϯετʔϧ https://ghost.org/download/ ͜ͷϖʔδ͔ΒzipϑΝΠϧΛμϯϩʔυͯ͠ల։ $ npm install --production $ npm start
Πϯετʔϧ͕ऴΘͬͨΒ ϒϥβͰ127.0.0.1:2368ʹଓ
ཧը໘ HIPTUͰཧը໘ʹଓ
nodeͷόʔδϣϯͰ·ͬͨΒ… Πϯετʔϧ͞Ε͍ͯΔnode.jsͷόʔδϣϯΛ֬ೝ $ nvm ls ݱࡏͷnodeͷόʔδϣϯΛ֬ೝ $ node -v ࢦఆͨ͠όʔδϣϯΛΠϯετʔϧ
$ nvm install 0.11 ༻͢ΔόʔδϣϯΛΓସ͑Δ $ nvm use 0.11
·ͱΊ • jsΛαʔόʔαΠυͰ͏ͱ͍͏͚ͩͰͳ͍͘Ζ Μͳ༻్Ͱ͑ͦ͏ • ຊ֨తʹnode.jsͰ࣮͢ΔͱͳΔͱɺಉظॲཧͷ ͍Ζ͍ΖΛߟྀ͢Δͷ݁ߏେมɻɻɻ • ͦͷͨΊʹmilkcocoasoket.ioͳͲͷϥΠϒϥϦ Λͬͯ؆୯ʹ࣮Ͱ͖ΔΈ͕ॆ࣮
• ͜Ε͔Βnode.jsͷ༻ൣғͲΜͲΜ·ͬͯ ͍͖ͦ͏ɻ
ΦϑΟεͷ͝հ
ॴ ←͜͜
ΦϑΟεͷ͝հ • ͍ͭͰؾܰʹ༡ͼʹདྷ͍ͯͩ͘͞ɻ • wifiɺిݯ͋Γ·͢ɻ • Πϕϯτ։࠵ͳͲ͝૬ஊ͍ͩ͘͞ɻ
Ͱاۀ߹॓ड͚͚͍ͯ·͢ʂʂ
ΦϑΟεͷΞΧϯτ lig_nagano @Lig_Nagano twitterɾinstagramͬͯ·͢ɻ
ΦϑΟεͰҰॹʹಇ͚Δ ؒΛืूதͰ͢ʂʂ •ϑϩϯτΤϯυΤϯδχΞ •όοΫΤϯυΤϯδχΞ •σβΠφʔ •σΟϨΫλʔ •ϥΠλʔ ʂʂཁ͢Δʹશ৬छʂʂ
Ͳ͜ͰΦϑΟε͡Ί·ͨ͠ɻ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂʂ