SlideShare a Scribd company logo
Node.js/Javascript
Calgary Meetup #1
What is Node.js?

•   A Very Fast Asynchronous Event Driven Server

•   Runs On Top of Google’s V8 Javascript Engine

•   You Write Server Code In Javascript (Yay!)

•   One Of The Fastest Growing Open Source Projects
Apps Running On Node.js

  •   Voxer       •   Sled.com

  •   Cloudkick   •   Pow

  •   Cloud9      •   nodejitsu

  •   Loggly      •   Calipso

  •   Word2
                  •   Bookfriend.me
How To Node
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello Worldn');
}).listen(1337, "127.0.0.1");
console.log('Server running at http://127.0.0.1:1337/');




                                                Code from nodejs.org
How To Node...
          Running The Server
% node example.js
Server running at http://127.0.0.1:1337/




                                           Code from nodejs.org
So How Does it Really Work?
       (Grocery Store Metaphore)
Did I Also Mention It’s Fast?




                           http://arlolra.no.de/
Node Has Modules
    Frameworks            (And Lots of Them)
                                                             Database
•   express/connect
                                                         •   node-mongodb-
                                                             native
•   bricks
                          Others          Testing        •   node-cassandra

Templating
                      •   socket.io   •   expresso
                                                         •   node-redis

•   jade              •   hook.io     •   nodeunit
                                                         •   node-mysql

•   ejs               •   jsdom       •   vows

•   moustache         •   everyauth   •   benchmark.js
{


    Managing Module
                                       	 "name": "My app"
                                         , "description": "It Does Cool Stuff!"	
                                         , "version": "0.0.1"
                                         , "author": {


    Dependencies is
                                               "name": "Eric Kryski",
                                               "email": "<nodecalgary@gmail.com>"
                                           }
                                         , "private": "true"

         Easy!                           , "homepage": "http://mydomain.com"
                                         , "main": "./app.js"
                                         , "engines": {"node": "~0.4"}
                                         , "repository": {

•   Use npm (node package manager)
                                       	 }
                                           	
                                           "type": "git"
                                           	 "url": "git@github.com/myproject/"
                                           ,



•   Define your package.json file          , "dependencies": {
                                       	 	 "express": ">= 2.3.11"
                                           	 "jade": ">= 0.12.2"
                                           ,

•   Use npm install to grab all your
                                         	 , "mongoose": ">= 1.4.0"
                                         	 , "mongoose-auth": ">= 0.0.10"

    modules                              	 , "everyauth": ">=0.2.17"
                                         	
                                         }
                                         , "devDependencies": {
    % npm install module_name                  "expresso": ">= 0.8.0"
                                           }
                                       }
Current Status

•   Current Stable Version is v0.4.10 (Aug. 4th, 2011)

•   Current Not-Stable Version is v0.5.3 (Aug. 4th, 2011)

•   Moving to v0.6 in ~4 weeks (Stable Windows Support)

•   Moving to v1.0 around end of 2011 (Speedy Windows & Unix Support)
Places To Get You Up And Running
•   http://nodejs.org/

•   http://howtonode.org/

•   http://nodetuts.com/

•   http://stackoverflow.com/questions/2353818/how-do-i-get-started-
    with-nodejs

•   http://groups.google.com/group/nodejs

•   IRC #node.js on freenode

•   I will be blogging at http://blog.erickryski.com

More Related Content

PDF
Node js quick tour v2
PDF
Complete MVC on NodeJS
PDF
Create a RESTful API with NodeJS, Express and MongoDB
PDF
JavaScript as a Server side language (NodeJS): JSConf 2011, Dhaka
KEY
20120514 nodejsdublin
PPTX
Create Rest API in Nodejs
PPTX
Introduction to node.js GDD
PPTX
GeekCampSG - Nodejs , Websockets and Realtime Web
Node js quick tour v2
Complete MVC on NodeJS
Create a RESTful API with NodeJS, Express and MongoDB
JavaScript as a Server side language (NodeJS): JSConf 2011, Dhaka
20120514 nodejsdublin
Create Rest API in Nodejs
Introduction to node.js GDD
GeekCampSG - Nodejs , Websockets and Realtime Web

What's hot (19)

KEY
Node.js - The New, New Hotness
PDF
Introduction to REST API with Node.js
PDF
Introduction to Node.js: What, why and how?
PDF
Node.js and How JavaScript is Changing Server Programming
PPTX
Java script at backend nodejs
PDF
Node.js et NPM: de la récupération de dépendances à la publication de paquets
PDF
Node azure
PDF
Node Security: The Good, Bad & Ugly
PDF
Node.js and Ruby
KEY
node.js: Javascript's in your backend
PDF
Use Node.js to create a REST API
PDF
Java/Spring과 Node.js의 공존 시즌2
PPTX
Ansible @ WebElement 2015
PPTX
Node.js debugging
PDF
The SPDY Protocol
PPTX
Node.js Patterns for Discerning Developers
PDF
Philip Stehlik at TechTalks.ph - Intro to Groovy and Grails
PDF
Test like a_boss
PPTX
Tampering with JavaScript
Node.js - The New, New Hotness
Introduction to REST API with Node.js
Introduction to Node.js: What, why and how?
Node.js and How JavaScript is Changing Server Programming
Java script at backend nodejs
Node.js et NPM: de la récupération de dépendances à la publication de paquets
Node azure
Node Security: The Good, Bad & Ugly
Node.js and Ruby
node.js: Javascript's in your backend
Use Node.js to create a REST API
Java/Spring과 Node.js의 공존 시즌2
Ansible @ WebElement 2015
Node.js debugging
The SPDY Protocol
Node.js Patterns for Discerning Developers
Philip Stehlik at TechTalks.ph - Intro to Groovy and Grails
Test like a_boss
Tampering with JavaScript
Ad

Similar to nodecalgary1 (20)

KEY
Practical Use of MongoDB for Node.js
PDF
Node js quick-tour_v2
PDF
Node js quick-tour_v2
PPTX
Introduction to node.js by jiban
PDF
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
PPTX
Node.js on Azure
KEY
Introducing the Seneca MVP framework for Node.js
KEY
20120816 nodejsdublin
PDF
Developing realtime apps with Drupal and NodeJS
KEY
A nodejs application
PPTX
Service stack all the things
KEY
Dcjq node.js presentation
KEY
Mongo and node mongo dc 2011
PDF
FITC - Node.js 101
KEY
20120306 dublin js
PPTX
PHP Indonesia - Nodejs Web Development
PPTX
Irfan maulana nodejs web development
PPTX
Introduction to node.js
PDF
Everything-as-code - A polyglot adventure
PDF
Everything-as-code. A polyglot adventure. #DevoxxPL
Practical Use of MongoDB for Node.js
Node js quick-tour_v2
Node js quick-tour_v2
Introduction to node.js by jiban
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
Node.js on Azure
Introducing the Seneca MVP framework for Node.js
20120816 nodejsdublin
Developing realtime apps with Drupal and NodeJS
A nodejs application
Service stack all the things
Dcjq node.js presentation
Mongo and node mongo dc 2011
FITC - Node.js 101
20120306 dublin js
PHP Indonesia - Nodejs Web Development
Irfan maulana nodejs web development
Introduction to node.js
Everything-as-code - A polyglot adventure
Everything-as-code. A polyglot adventure. #DevoxxPL
Ad

Recently uploaded (20)

PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Approach and Philosophy of On baking technology
PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Modernizing your data center with Dell and AMD
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Unlocking AI with Model Context Protocol (MCP)
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Approach and Philosophy of On baking technology
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Dropbox Q2 2025 Financial Results & Investor Presentation
Modernizing your data center with Dell and AMD
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
Reach Out and Touch Someone: Haptics and Empathic Computing
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Empathic Computing: Creating Shared Understanding
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectral efficient network and resource selection model in 5G networks
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
MYSQL Presentation for SQL database connectivity
Unlocking AI with Model Context Protocol (MCP)

nodecalgary1

  • 2. What is Node.js? • A Very Fast Asynchronous Event Driven Server • Runs On Top of Google’s V8 Javascript Engine • You Write Server Code In Javascript (Yay!) • One Of The Fastest Growing Open Source Projects
  • 3. Apps Running On Node.js • Voxer • Sled.com • Cloudkick • Pow • Cloud9 • nodejitsu • Loggly • Calipso • Word2 • Bookfriend.me
  • 4. How To Node var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello Worldn'); }).listen(1337, "127.0.0.1"); console.log('Server running at http://127.0.0.1:1337/'); Code from nodejs.org
  • 5. How To Node... Running The Server % node example.js Server running at http://127.0.0.1:1337/ Code from nodejs.org
  • 6. So How Does it Really Work? (Grocery Store Metaphore)
  • 7. Did I Also Mention It’s Fast? http://arlolra.no.de/
  • 8. Node Has Modules Frameworks (And Lots of Them) Database • express/connect • node-mongodb- native • bricks Others Testing • node-cassandra Templating • socket.io • expresso • node-redis • jade • hook.io • nodeunit • node-mysql • ejs • jsdom • vows • moustache • everyauth • benchmark.js
  • 9. { Managing Module "name": "My app" , "description": "It Does Cool Stuff!" , "version": "0.0.1" , "author": { Dependencies is "name": "Eric Kryski", "email": "<nodecalgary@gmail.com>" } , "private": "true" Easy! , "homepage": "http://mydomain.com" , "main": "./app.js" , "engines": {"node": "~0.4"} , "repository": { • Use npm (node package manager) } "type": "git" "url": "git@github.com/myproject/" , • Define your package.json file , "dependencies": { "express": ">= 2.3.11" "jade": ">= 0.12.2" , • Use npm install to grab all your , "mongoose": ">= 1.4.0" , "mongoose-auth": ">= 0.0.10" modules , "everyauth": ">=0.2.17" } , "devDependencies": { % npm install module_name "expresso": ">= 0.8.0" } }
  • 10. Current Status • Current Stable Version is v0.4.10 (Aug. 4th, 2011) • Current Not-Stable Version is v0.5.3 (Aug. 4th, 2011) • Moving to v0.6 in ~4 weeks (Stable Windows Support) • Moving to v1.0 around end of 2011 (Speedy Windows & Unix Support)
  • 11. Places To Get You Up And Running • http://nodejs.org/ • http://howtonode.org/ • http://nodetuts.com/ • http://stackoverflow.com/questions/2353818/how-do-i-get-started- with-nodejs • http://groups.google.com/group/nodejs • IRC #node.js on freenode • I will be blogging at http://blog.erickryski.com

Editor's Notes