Skip to content
This repository

( used for testing ) a sample node.js application with a well-formed package.json that has contains required fields for nodejitsu deployment

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 node_modules
Octocat-spinner-32 app.js
Octocat-spinner-32 cluster.js
Octocat-spinner-32 package.json
Octocat-spinner-32 server.js


the simplest possible http server hello world example in node


  • Example package.json
  • Starts up simple httpServer with helloworld


 git clone git://
 cd hellonode
 node server.js

Now you should have a listening node.js http server running on port 80

the code

// requires node's http module
var http = require('http');

// creates a new httpServer instance
http.createServer(function (req, res) {

  // ^^ this is the callback, or request handler for the httpServer

  // respond to the browser, write some headers so the 
  // browser knows what type of content we are sending
  res.writeHead(200, {'Content-Type': 'text/plain'});

  // write some content to the browser that your user will see
  res.write('hello, i know nodejitsu.')

  // close the response

}).listen(80); // the server will listen on port 80
Something went wrong with that request. Please try again.