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
Node.js e Google Cloud Platform
Search
Paulo Pires
November 22, 2014
Technology
1
140
Node.js e Google Cloud Platform
Paulo Pires
November 22, 2014
Tweet
Share
More Decks by Paulo Pires
See All by Paulo Pires
Introdução ao WebAssembly
paulohp
0
32
Introdução ao GraphQL
paulohp
0
39
GraphQL 101
paulohp
0
74
Side Effects: Uma Saga até o React
paulohp
0
77
MobX: State Management made easy
paulohp
0
80
Docker: The Rise of Containers
paulohp
0
84
We Work Remotely
paulohp
2
88
Angular2
paulohp
0
220
Node.js Codelab
paulohp
1
160
Other Decks in Technology
See All in Technology
Snowflake女子会#3 Snowpipeの良さを5分で語るよ
lana2548
0
230
20241214_WACATE2024冬_テスト設計技法をチョット俯瞰してみよう
kzsuzuki
3
450
マルチプロダクト開発の現場でAWS Security Hubを1年以上運用して得た教訓
muziyoshiz
3
2.3k
.NET 9 のパフォーマンス改善
nenonaninu
0
890
Qiita埋め込み用スライド
naoki_0531
0
4.8k
NilAway による静的解析で「10 億ドル」を節約する #kyotogo / Kyoto Go 56th
ytaka23
3
380
新機能VPCリソースエンドポイント機能検証から得られた考察
duelist2020jp
0
220
AWS re:Invent 2024 ふりかえり
kongmingstrap
0
130
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
1
200
大幅アップデートされたRagas v0.2をキャッチアップ
os1ma
2
530
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
統計データで2024年の クラウド・インフラ動向を眺める
ysknsid25
2
840
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
Agile that works and the tools we love
rasmusluckow
328
21k
Site-Speed That Sticks
csswizardry
2
190
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Scaling GitHub
holman
458
140k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Mobile First: as difficult as doing things right
swwweet
222
9k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Six Lessons from altMBA
skipperchong
27
3.5k
Transcript
javascript and google cloud
Paulo Pires paulopires.me
how google cloud work?
None
PaaS
go python php java custom runtimes
custom runtimes
None
you need 4 files
app.yaml Dockerfile server.js package.json
app.yaml version: 1 runtime: custom vm: true api_version: 1 manual_scaling:
instances: 1 handlers: ...
Dockerfile FROM google/nodejs-runtime
server.js var appengine = require('appengine'); var express = require('express'); var
app = express(); app.use(appengine.middleware.base); app.get('/_ah/health', function(req, res) { res.set('Content-Type', 'text/plain'); res.send(200, 'ok'); }); app.listen(8080, '0.0.0.0'); console.log('Listening on port 8080');
package.json { "name": "quickstart", "description": "Appengine node.js project", "version": "0.0.1",
"dependencies": { "express": "4.x", "appengine" : "git://github.com/GoogleCloudPlatfor appengine-nodejs.git" } }
♥
$ gcloud preview app run . $ gcloud --verbosity debug
preview app run . $ gcloud --project YOUR-PROJECT preview app deploy . deploy
♥
we have other option
None
IaaS
storage compute dns api's big query
to use with node.js bit.ly/node-google
♥
vlw♥