No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
examples
js
lib
plugin/speakernotes
.gitignore
README.md
index.html
package.json
reveal.js-LICENSE

README.md

#Intro to node.js

View the presentation at: http://lancefisher.github.com/node.js-presentation/

###What is node.js

###Evented I/O

  • JavaScript on the server!
  • Evented I/O

###Installing

  • On Windows or Mac, use an installer
  • On Linux, use your favorite package manager

###A web server

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');

###NPM Node Package Manager

###REPL Read Eval Print Loop

###Core Modules e.g. http

###Files as Modules var thing = require('./mything')

###Callbacks THE convention

###socket.io Realtime Pushing to the client

###Debugging node debug util.inspect node-inspector

###Make your own scripts:

chmod +x hello.js
#!/usr/bin/env node

#Links

#Credits Presentation built with [reveal.js (https://github.com/hakimel/reveal.js)] Running locally with:

$ python -m SimpleHTTPServer