node.js jump start

22
Node.js Jump Start Haim Michael May 23 th , 2014 All logos, trade marks and brand names used in this presentation, such as the node.js logo, belong to their respective owners. Haim Michael and LifeMichael are not related, associated or connected neither with the development of Node.js or with any of the companies and the technologies related to Node.js. You can watch the video clip at http://youtu.be/HWWggL1cRWY . L i f e M i c h a e l . c o m

Upload: haim-michael

Post on 10-May-2015

216 views

Category:

Software


0 download

DESCRIPTION

Introduction for the server side development using the Node.js framework. The lecture was delivered in Hebrew. You can watch it at http://youtu.be/HWWggL1cRWY.

TRANSCRIPT

Page 1: Node.js Jump Start

Node.js Jump Start

Haim MichaelMay 23th, 2014

All logos, trade marks and brand names used in this presentation, such as the node.js logo, belong to their respective owners. Haim Michael and LifeMichaelare not related, associated or connected neither with the development of Node.jsor with any of the companies and the technologies related to Node.js.

You can watch the video clip at http://youtu.be/HWWggL1cRWY.

Li fe M

ic hae l .c o

m

Page 2: Node.js Jump Start

Table of ContentLi fe M

ic hae l .c o

m● What is Node.js? ● Asynchronous Programming ● The Module Architecture● Centralized Modules Repository● Popular Modules● Learning Resources● Questions & Answers

Page 3: Node.js Jump Start

What is Node.js?

● The node.js platform allows us to develop web

applications excellent in their performance.

● The node.js platform is based on JavaScript v8. We use

the JavaScript language.

Li fe M

ic hae l .c o

m

Page 4: Node.js Jump Start

Asynchronous Programming

● The functions in node.js are asynchronous. As a result of

that everything is executed in the background

Li fe M

ic hae l .c o

m

var http = require('http');

var server = http.createServer(function (req, res) { res.writeHead(200, {'Content-Type':'text/plain'}); res.end('Hello World!\n');});

server.listen(1400,'127.0.0.1');

Page 5: Node.js Jump Start

The Module Architecture

● The node.js platform uses the module architecture. It

simplifies the creation of complex applications.

● Each module contains a set of related functions.

● We use the require() function in order to include a

module we want to use.

Li fe M

ic hae l .c o

m

Page 6: Node.js Jump Start

The Module Architecture

● The Node Package Manager, AKA as NPM, allows us to

manage the packages installed on our computer.

● NPM provides us with an online public registry service

that contains all the packages programmers publish

using the NPM.

● The NPM provides us with the npm tool we can use for

downloading, installing the managing those packages

Li fe M

ic hae l .c o

m

Page 7: Node.js Jump Start

Centralized Modules Repository

● The centralized repository of public modules maintained

by the NPM is available at https://www.npmjs.org/.

Li fe M

ic hae l .c o

m

Page 8: Node.js Jump Start

Popular Modules

● The https://nodejsmodules.org website tracks the

popular modules been used together with node.js.

● Some of the more interesting modules I recommend to

check include the following:

socket.io

mongoosejs.com

Li fe M

ic hae l .c o

m

Page 9: Node.js Jump Start

Learning Resources● You can find a node.js Jump Start course as well as other

related courses at http://abelski.lifemichael.com.

Li fe M

ic hae l .c o

m

Page 10: Node.js Jump Start

Learning Resources● You can find detailed documentation in node.js official

website at http://nodejs.org.

Li fe M

ic hae l .c o

m

Page 11: Node.js Jump Start

Questions & Answers● Three courses you might find interesting include

Software Engineering in PHP

more info

Android 4.4 Java Applications Development

more info

HTML5 Cross Platform Mobile Applications

more info

● If you enjoyed my lecture please leave me a comment

at http://speakerpedia.com/speakers/life-michael.

Thanks for your time!

Haim.

Li fe M

ic hae l .c o

m

Page 12: Node.js Jump Start

Node.js Jump Start

Haim MichaelMay 23th, 2014

All logos, trade marks and brand names used in this presentation, such as the node.js logo, belong to their respective owners. Haim Michael and LifeMichaelare not related, associated or connected neither with the development of Node.jsor with any of the companies and the technologies related to Node.js.

You can watch the video clip at http://youtu.be/HWWggL1cRWY.

LifeMic hael.c o

m

Page 13: Node.js Jump Start

Table of Content

LifeMic hael.c o

m● What is Node.js? ● Asynchronous Programming ● The Module Architecture● Centralized Modules Repository● Popular Modules● Learning Resources● Questions & Answers

Page 14: Node.js Jump Start

What is Node.js?

● The node.js platform allows us to develop web

applications excellent in their performance.

● The node.js platform is based on JavaScript v8. We use

the JavaScript language.

LifeMic hael.c o

m

Page 15: Node.js Jump Start

Asynchronous Programming

● The functions in node.js are asynchronous. As a result of

that everything is executed in the background

LifeMic hael.c o

mvar http = require('http');

var server = http.createServer(function (req, res) { res.writeHead(200, {'Content-Type':'text/plain'}); res.end('Hello World!\n');});

server.listen(1400,'127.0.0.1');

Page 16: Node.js Jump Start

The Module Architecture

● The node.js platform uses the module architecture. It

simplifies the creation of complex applications.

● Each module contains a set of related functions.

● We use the require() function in order to include a

module we want to use.

LifeMic hael.c o

m

Page 17: Node.js Jump Start

The Module Architecture

● The Node Package Manager, AKA as NPM, allows us to

manage the packages installed on our computer.

● NPM provides us with an online public registry service

that contains all the packages programmers publish

using the NPM.

● The NPM provides us with the npm tool we can use for

downloading, installing the managing those packages

LifeMic hael.c o

m

Page 18: Node.js Jump Start

Centralized Modules Repository

● The centralized repository of public modules maintained

by the NPM is available at https://www.npmjs.org/.

LifeMic hael.c o

m

Page 19: Node.js Jump Start

Popular Modules

● The https://nodejsmodules.org website tracks the

popular modules been used together with node.js.

● Some of the more interesting modules I recommend to

check include the following:

socket.io

mongoosejs.com

LifeMic hael.c o

m

Page 20: Node.js Jump Start

Learning Resources● You can find a node.js Jump Start course as well as other

related courses at http://abelski.lifemichael.com.

LifeMic hael.c o

m

Page 21: Node.js Jump Start

Learning Resources● You can find detailed documentation in node.js official

website at http://nodejs.org.

LifeMic hael.c o

m

Page 22: Node.js Jump Start

Questions & Answers● Three courses you might find interesting include

Software Engineering in PHP

more info

Android 4.4 Java Applications Development

more info

HTML5 Cross Platform Mobile Applications

more info

● If you enjoyed my lecture please leave me a comment

at http://speakerpedia.com/speakers/life-michael.

Thanks for your time!

Haim.

LifeMic hael.c o

m