nodecalgary1

1,712 views

Published on

Basic intro to Node.js for the first Node.js Calgary meetup on August 4th, 2011.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,712
On SlideShare
0
From Embeds
0
Number of Embeds
130
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • nodecalgary1

    1. 1. Node.js/JavascriptCalgary Meetup #1
    2. 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. 3. Apps Running On Node.js • Voxer • Sled.com • Cloudkick • Pow • Cloud9 • nodejitsu • Loggly • Calipso • Word2 • Bookfriend.me
    4. 4. How To Nodevar 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. 5. How To Node... Running The Server% node example.jsServer running at http://127.0.0.1:1337/ Code from nodejs.org
    6. 6. So How Does it Really Work? (Grocery Store Metaphore)
    7. 7. Did I Also Mention It’s Fast? http://arlolra.no.de/
    8. 8. Node Has Modules Frameworks (And Lots of Them) Database• express/connect • node-mongodb- native• bricks Others Testing • node-cassandraTemplating • socket.io • expresso • node-redis• jade • hook.io • nodeunit • node-mysql• ejs • jsdom • vows• moustache • everyauth • benchmark.js
    9. 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. 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. 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

    ×