More Related Content Similar to Software Tests with MongoDB Similar to Software Tests with MongoDB (20) Software Tests with MongoDB1. Getting started
with Node.js and MongoDB on MS Azure
®
20.03.2012
Dipl.-Inf. (FH) Johannes Hoppe
13. platform
Cloud
PaaS / IaaS
Visual Studio 2010
Targets .NET, but also and now officially:
Java, PHP, Node.js… MongoDB
14. Event-driven Asynchronous I/O
JavaScript Google V8 engine
Server-side MIT License
16. What you get
› Node.exe
› IISNode (native IIS module)
› NPM for Windows (package manager)
› […]
17. Live Demo / Windows PowerShell
› New-AzureService helloworld
› Add-AzureNodeWebRole
› Start-AzureEmulator -launch
18. server.js
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello world!');
}).listen(process.env.PORT);
20. Tricky Emulator
› Webinstaller: Decide for IIS Express
› Start PowerShell with Admin Rights
21. Tricky Emulator
› Check the Windows Event log
› Last resort: start node.exe manually
22. Deployment / Windows PowerShell
› Get-AzurePublishSettings
› Import-AzurePublishSettings filename.publishSettings
› Publish-AzureService -name UniqueName -location "North
Europe" -launch
25. “Microsoft has been working with 10gen
to provide MongoDB database
integration for Windows Azure,
including deployment packaging,
documentation, and code samples.”
MSDN, December 2011: http://msdn.microsoft.com/en-us/library/gg441573.aspx
27. PowerShell
› Only once: Get-AzureMongoDBBinaries
› New-AzureService helloMongo
› Add-AzureMongoWorkerRole
› Join-AzureNodeRoleToMongoRole WebRole1
› npm install mongodb
28. Node.js Web Application
with Storage on MongoDB
Tutorial:
https://www.windowsazure.com/en-
us/develop/nodejs/tutorials/web-app-with-mongodb/
33. Next Speaking Engagements
› 12.04.2012 – .NET UG Niederrhein: AOP / .NET
› 10.05.2012 – .NET UG Karlsruhe: NoSQL / .NET
› 14.05.2012 – .NET Developer Conference (DDC)
Nürnberg: NoSQL / .NET (2 talks)
34. Picture credits
wave © THesIMPLIFY – Fotolia.com
Stressed businessman © Selecstock – Fotolia.com
Ausgewählter Ordner © Spectral-Design – Fotolia.com
Warnhinweis-Schild © Sascha Tiebel – Fotolia.com
Liste abhaken © Dirk Schumann – Fotolia.com