Node.JS is an application that will allow you to create your own server using JavaScript. This in turn allows you to develop server and client side apps using nothing but JS (and HTML and CSS). It is an increasingly popular application on which a whole world now relies. Download and install the "mature and dependable" version of Node.JS on your computer.


Let's start with a simple server

var http = require('http');

http.createServer(function (request, response) {
    response.writeHead(200, {
        'Content-Type': 'text/plain'
    });
    response.end('Howdy!');
}).listen(3000);

console.log('listening on port 3000');

We will be using the Express framework which will allow us to define routes more expressively:

var express = require('express');
var app = express();

app.get('/', function(request, response){
    response.send('Howdy!');
});

app.listen(3000);
console.log('listening on port 3000');

Homework

Catch up.

Hand in all assignnments: APIs, Graphics Frameworks

Read up to chapter 3 in Eloquent JavaScript

If jQuery is still confusing check out this article.

Recommended

Read The Beginner Node Book by Manuel Kiessling (also uploaded to the drive).