It's the keynote on Telkom Bandung Digital Valley's TechThursday. I talked about developing and deploying Node.js application on Windows Azure.
Attented by 20 web developers around Bandung city.
To try the code I demoed, here's the repo:
https://github.com/andriyadi/NodeAzureStorageSocketIO
16. var http = require('http');
http.Server(function (req, res) {
res.writeHead(200, {'Content-Type':
'text/plain'});
res.end('Hello Worldn');
}).listen(3000);
HTTP Server
A simple standalone working HTTP server
Web development from the scratch :)
21. Real-world web development should use this module!
!
npm install express
!
or if you’ve installed express-generator module,
just type:
express
Express
24. Enables real-time bidirectional event-based
communication
!
npm install socket.io
!
*Socket.IO 1.0 is different than 0.9.x. Make sure to
read migration guide.
Socket.io
26. on “connection” event
“alltasks” event
“addtask” event
broadcast “newtask” event
“completetask” event
broadcast “taskcompleted” event
Socket.IO realtime events
No need to post data via HTTP POST!
34. Get Azure account. Buy or free trial :)
!
Login to Azure and select subscription (if > 1):
!
azure account download
azure account import <file>
azure account set <subscription>
Deploy Node.js on Azure
Website
35. Creating website
from current directory:
!
azure site create —-git
git add .
git commit -m "First Commit”
git push azure master
!
That’s it!
Deploy Node.js on Azure
Website
36. More detail articles:
• http://azure.microsoft.com/en-us/documentation/
articles/xplat-cli/
• http://azure.microsoft.com/en-us/documentation/
articles/storage-nodejs-use-table-storage-web-site/
!
There’re more options to deploy Node.js to Azure. Just
check here:
http://azure.microsoft.com/en-us/develop/nodejs/
Deploy Node.js on Azure
Website
37. Get your hand on iOS 8
or Node.js?
Let’s join upcoming iOS 8 & Node.js
development class!
More info:
http://dycode.co.id
edu@dycode.com
ADS