Professional Documents
Culture Documents
What Is Node JS ?
What Is Node JS ?
com
JavaScript created in 1995 by Brendan Eich (@Netscape labs)
.
JS become a ECMA (European Computer Manufacturers
Association) standard by 1997. It remains a standard in client-
side app over years.
Google V8, chrome, Sep 2008
console.log(data);
});
console.log("Reading file...");
Using async module
Using process.nextTick() trick:
{ process.nextTick(function()
while (1) {
callback(x + y);
}
});
}
add(2, 3, console.log);
console.log("The sum is:" );
Install NodeJS :
http://nodejs.org/download/
Create a app.js file with the following code:
To install ExpressJS:
◦ > npm install –g express
Express has got a scafolding capability that help you create a sustainable
project structure, easy to extend and maintain. Express-generator is
the module dedicated to that job.
◦ > npm install –g express-generator
Find a ExpressJS app example on my GITHUB:
◦ https://github.com/ndjido/NodeJS_intro