How to package your node.js application for deploying it in an offline environment?

Personally speaking, I prefer to have a self-contained bundle with all the artifacts and modules that might be required to deploy an application (not just Node.js application) in Production. In that way, I know exactly the bits that were installed and nothing more and nothing less. It also eliminates the availability of the NPM modules and network connectivity issues, etc. The following procedure shows you how to create a simple “Hello World” Node.

Getting started with vertx (vert.io) - an alternative to node.js

Lately there has been a lot of synergy and publicity around node.js (especially if you want to utilize the robust features of a JavaScript language on the server-side). If you are not familiar with this, I would suggest you look at the following link: Node.js - Event-driven I/O server-side JavaScript environment based on V8. If you are a Java developer and as you try out the examples, you will notice how this will be a great addition into your infrastructure.