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
40
Introdução ao GraphQL
paulohp
0
45
GraphQL 101
paulohp
0
82
Side Effects: Uma Saga até o React
paulohp
0
81
MobX: State Management made easy
paulohp
0
86
Docker: The Rise of Containers
paulohp
0
89
We Work Remotely
paulohp
2
94
Angular2
paulohp
0
220
Node.js Codelab
paulohp
1
170
Other Decks in Technology
See All in Technology
大手企業のAIツール導入の壁を越えて:サイバーエージェントのCursor活用戦略
gunta
9
1.4k
エンジニアが組織に馴染むために勉強会を主催してチームの壁を越える
ohmori_yusuke
2
120
Houtou.pm #1
papix
0
660
令和トラベルQAのAI活用
seigaitakahiro
0
520
プラットフォームとしての Datadog / Datadog as Platforms
aoto
PRO
1
330
Streamline Cloud-Native App Development Using CDEs
saeedzf
0
850
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
3
17k
Slackひと声でブログ校正!Claudeレビュー自動化編
yusukeshimizu
3
170
GitHub Coding Agent 概要
kkamegawa
1
1.6k
ゴリラ.vim #36 ~ Vim x SNS ~ スポンサーセッション
yasunori0418
1
340
プロジェクトマネジメント実践論|現役エンジニアが語る!~チームでモノづくりをする時のコツとは?~
mixi_engineers
PRO
3
180
Introduction to Bill One Development Engineer
sansan33
PRO
0
240
Featured
See All Featured
Being A Developer After 40
akosma
91
590k
Building an army of robots
kneath
306
45k
Thoughts on Productivity
jonyablonski
69
4.7k
Mobile First: as difficult as doing things right
swwweet
223
9.6k
Why Our Code Smells
bkeepers
PRO
336
57k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Done Done
chrislema
184
16k
How to Think Like a Performance Engineer
csswizardry
23
1.6k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Building Applications with DynamoDB
mza
95
6.4k
A Tale of Four Properties
chriscoyier
159
23k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
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♥