SlideShare a Scribd company logo
1 of 12
Download to read offline
Windows Azure
      nodeJS
Guðmundur Jón Halldórsson
    Sigurjón Lýðsson
Hvað er node.js
• Skrifað af Ryan Dahl
• Javascript library til að byggja netþjóna
• Byggt á V8 (Chrome Javascript runtime)

• http://www.nodejs.org
Af hverju node.js?


„NODE‘S GOAL IS TO PROVIDE AN
  EASY WAY TO BUILD SCALABLE
 NETWORK PROGRAMS“ – nodejs.org
              -eða-
    Auðveld leið til að búa til
      skalanlegar netþjóna
AFHVERJU node.js
•   Asynchronous IO Framework
•   Chrome Javascript runtime (c++) - V8
•   Restin skrifuð í JavaScript
•   Getur meðhöndlað þúsundir af samtíma
    tengingum með lágmarks cpu og
    minnisnotkun á einum process
Hvenær á að nota node.js
•   Rauntíma kerfi
•   Spjall /skilaboð
•   Þegar mikið þarf að gerast samtímis
•   Samræming
•   Samskipta hub
Windows Azure SDK fyrir Node.js
• IIS7.x module til að hýsa Node.js forrit
• Microsoft Visual C++ 2010 Redistributable
  Package
• Node.js og Node Package Manager
• Powershell fyrir node.js
Nýtt node.js Azure verkefni...
• Í gegnum „Windows Azure PowserShell for
  Node.js“...
• Búum til nýtt verkefni
  – c:node> New-AzureService gameServer
• Búum til WebRole
  – c:nodegameServer> Add-AzureNodeWebRole GameWebRole
• Ræsum Azure Emulator
  – c:nodegameServerGameWebRole> Start-AzureEmulator –launch
• Þegar Azure Emulator er í gangi
  – c:nodegameServerGameWebRole> Start http://localhost:81
Og síðan eitthvað alvöru...
• Notum npm og bætum við nokkrum pökkum
  – c:nodegameServerGameWebRole> npm install express node-uuid azure

• Búum til Express Web Application
  – c:nodegameServerGameWebRole> .node_modules.binexpress
  (til að fá dependencies)
  – c:nodegameServerGameWebRole> npm install

• Hreinsum til
  – C:nodegameServerGameWebRole> del server.js
  – C:nodegameServerGameWebRole> ren app.js server.js
  – c:nodegameServerGameWebRole> Start-AzureEmulator –launch
Hvernig ný þjónusta er búinn til með Powershell og Node Package
Manager

DEMO
Eitthvað skemmtilegt...

DEMO
Áhugavert efni
Azure
• http://www.windowsazure.com
• http://www.windowsazure.com/en-
  us/develop/nodejs/
nodeJS
•   http://www.nodejs.org
•   http://c9.io
•   http://socket.io
•   http://expressjs.com
Spurningar
• Twitter
  @gudmundurjon
  @sigurjonl
• LinkedIn
  http://is.linkedin.com/in/gudmundurjon
• Email
  gudmundurjon@hotmail.com
  v-siglyd@microsoft.com

More Related Content

Viewers also liked

ALEKS: How can we help at-risk students be more successful in math?
ALEKS: How can we help at-risk students be more successful in math?ALEKS: How can we help at-risk students be more successful in math?
ALEKS: How can we help at-risk students be more successful in math?Cara Warne Milligan
 
Presentatie Sjaak Nouwt voor KNMG-congres eHealth op 9 februari 2011
Presentatie Sjaak Nouwt voor KNMG-congres eHealth op 9 februari 2011Presentatie Sjaak Nouwt voor KNMG-congres eHealth op 9 februari 2011
Presentatie Sjaak Nouwt voor KNMG-congres eHealth op 9 februari 2011KNMG
 
Balance between insight and noise indicia v2
Balance between insight and noise indicia v2Balance between insight and noise indicia v2
Balance between insight and noise indicia v2Nick Barthram
 
Royal holloway 271010
Royal holloway 271010Royal holloway 271010
Royal holloway 271010SLEvansBL
 
Worcester 6-11
Worcester 6-11Worcester 6-11
Worcester 6-11suzieboss
 
UTMessan 2014 - Same .NET code for Windows, Linux, and OsX
UTMessan 2014 - Same .NET code for Windows, Linux, and OsXUTMessan 2014 - Same .NET code for Windows, Linux, and OsX
UTMessan 2014 - Same .NET code for Windows, Linux, and OsXDataPlato, Crossing the line
 
Инокс Инженеринг
Инокс ИнженерингИнокс Инженеринг
Инокс ИнженерингSpas Atanasov
 

Viewers also liked (15)

ALEKS: How can we help at-risk students be more successful in math?
ALEKS: How can we help at-risk students be more successful in math?ALEKS: How can we help at-risk students be more successful in math?
ALEKS: How can we help at-risk students be more successful in math?
 
Tutorial dropbox
Tutorial dropboxTutorial dropbox
Tutorial dropbox
 
Presentatie Sjaak Nouwt voor KNMG-congres eHealth op 9 februari 2011
Presentatie Sjaak Nouwt voor KNMG-congres eHealth op 9 februari 2011Presentatie Sjaak Nouwt voor KNMG-congres eHealth op 9 februari 2011
Presentatie Sjaak Nouwt voor KNMG-congres eHealth op 9 februari 2011
 
Power animals
Power animalsPower animals
Power animals
 
Balance between insight and noise indicia v2
Balance between insight and noise indicia v2Balance between insight and noise indicia v2
Balance between insight and noise indicia v2
 
Royal holloway 271010
Royal holloway 271010Royal holloway 271010
Royal holloway 271010
 
Worcester 6-11
Worcester 6-11Worcester 6-11
Worcester 6-11
 
Twitter
TwitterTwitter
Twitter
 
HHN October 2010
HHN October 2010HHN October 2010
HHN October 2010
 
2013 02 08 sky cloud for everyone
2013 02 08 sky cloud for everyone2013 02 08 sky cloud for everyone
2013 02 08 sky cloud for everyone
 
Tutoria
TutoriaTutoria
Tutoria
 
UTMessan 2014 - Same .NET code for Windows, Linux, and OsX
UTMessan 2014 - Same .NET code for Windows, Linux, and OsXUTMessan 2014 - Same .NET code for Windows, Linux, and OsX
UTMessan 2014 - Same .NET code for Windows, Linux, and OsX
 
Prowhitesmile
ProwhitesmileProwhitesmile
Prowhitesmile
 
Ax3000 g e2_manual korg
Ax3000 g e2_manual korgAx3000 g e2_manual korg
Ax3000 g e2_manual korg
 
Инокс Инженеринг
Инокс ИнженерингИнокс Инженеринг
Инокс Инженеринг
 

2012 02-09 windows-azure_and_nodejs

  • 1. Windows Azure nodeJS Guðmundur Jón Halldórsson Sigurjón Lýðsson
  • 2. Hvað er node.js • Skrifað af Ryan Dahl • Javascript library til að byggja netþjóna • Byggt á V8 (Chrome Javascript runtime) • http://www.nodejs.org
  • 3. Af hverju node.js? „NODE‘S GOAL IS TO PROVIDE AN EASY WAY TO BUILD SCALABLE NETWORK PROGRAMS“ – nodejs.org -eða- Auðveld leið til að búa til skalanlegar netþjóna
  • 4. AFHVERJU node.js • Asynchronous IO Framework • Chrome Javascript runtime (c++) - V8 • Restin skrifuð í JavaScript • Getur meðhöndlað þúsundir af samtíma tengingum með lágmarks cpu og minnisnotkun á einum process
  • 5. Hvenær á að nota node.js • Rauntíma kerfi • Spjall /skilaboð • Þegar mikið þarf að gerast samtímis • Samræming • Samskipta hub
  • 6. Windows Azure SDK fyrir Node.js • IIS7.x module til að hýsa Node.js forrit • Microsoft Visual C++ 2010 Redistributable Package • Node.js og Node Package Manager • Powershell fyrir node.js
  • 7. Nýtt node.js Azure verkefni... • Í gegnum „Windows Azure PowserShell for Node.js“... • Búum til nýtt verkefni – c:node> New-AzureService gameServer • Búum til WebRole – c:nodegameServer> Add-AzureNodeWebRole GameWebRole • Ræsum Azure Emulator – c:nodegameServerGameWebRole> Start-AzureEmulator –launch • Þegar Azure Emulator er í gangi – c:nodegameServerGameWebRole> Start http://localhost:81
  • 8. Og síðan eitthvað alvöru... • Notum npm og bætum við nokkrum pökkum – c:nodegameServerGameWebRole> npm install express node-uuid azure • Búum til Express Web Application – c:nodegameServerGameWebRole> .node_modules.binexpress (til að fá dependencies) – c:nodegameServerGameWebRole> npm install • Hreinsum til – C:nodegameServerGameWebRole> del server.js – C:nodegameServerGameWebRole> ren app.js server.js – c:nodegameServerGameWebRole> Start-AzureEmulator –launch
  • 9. Hvernig ný þjónusta er búinn til með Powershell og Node Package Manager DEMO
  • 11. Áhugavert efni Azure • http://www.windowsazure.com • http://www.windowsazure.com/en- us/develop/nodejs/ nodeJS • http://www.nodejs.org • http://c9.io • http://socket.io • http://expressjs.com
  • 12. Spurningar • Twitter @gudmundurjon @sigurjonl • LinkedIn http://is.linkedin.com/in/gudmundurjon • Email gudmundurjon@hotmail.com v-siglyd@microsoft.com