Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
hofmann
Active Contributor
0 Kudos

Node.js allows you to write network applications written in Javascript. More information can be found on node.js homepage. First step to install node.js is to download the software. The download page list several package. Use the one that applies to your platform and architecture.

Installation

The node.js installation wizard will take care of all the steps to install the software.

Start of the wizard

Installation done

The last installation screen includes the step needed to actually execute node.js. Just call node from the command line.

Running NodeJS

Testing node.js

To see if node.js is working, copy the web server example from the node.js homepage into the screen:

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/');

To test the created web server, call the web server running under http://localhost:1337 with a browser.

Node.js is installed and ready to be used.

Labels in this area