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
130
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
26
Introdução ao GraphQL
paulohp
0
28
GraphQL 101
paulohp
0
68
Side Effects: Uma Saga até o React
paulohp
0
56
MobX: State Management made easy
paulohp
0
68
Docker: The Rise of Containers
paulohp
0
77
We Work Remotely
paulohp
2
80
Angular2
paulohp
0
210
Node.js Codelab
paulohp
1
150
Other Decks in Technology
See All in Technology
どう買う?Azure
kuniteru
1
190
オブジェクト指向宗教史
tanakahisateru
14
12k
やっていきテスト
k6s4i53rx
0
160
#51 “Empowering Azure Storage with RDMA”
cafenero_777
3
210
エンジニア候補者向け資料2024.03.28.pdf
macloud
0
2.9k
プッシュ型子育てサービスを、先行プロジェクト実施自治体において開始します
govtechtokyo
0
280
LLM + RAG を使った SORACOM Support Bot の裏側の歴史
soracom
PRO
1
640
依存ライブラリはどこに?
takesection
0
110
Elementaryを用いたデータ品質の可視化とデータ基盤の運用改善
10xinc
6
1.6k
こんなに簡単!AWSマルチアカウント
takuya_terada
0
110
戦略的DDDを実践するための跳躍力 / OOC 2024
pictiny
6
4.1k
Challenges - Open Farming Hackdays 2024
loleg
0
570
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
21
3.8k
Designing with Data
zakiwarfel
94
4.8k
The Invisible Customer
myddelton
114
12k
Build your cross-platform service in a week with App Engine
jlugia
223
17k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Why Our Code Smells
bkeepers
PRO
330
56k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
6
950
Visualization
eitanlees
135
14k
Art, The Web, and Tiny UX
lynnandtonic
288
19k
Raft: Consensus for Rubyists
vanstee
130
6.2k
Writing Fast Ruby
sferik
619
59k
Ruby is Unlike a Banana
tanoku
95
10k
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♥