Express for Node.js

Express is a simple web application framework for building hybrid web applications. You can render web pages, generate  customized responses and create user-friendly APIs quickly with ease. It just fits the trade with Node.js. This post covers the installation and hello world example: Installation: buntu@ubuntu:~$ sudo npm install express express@3.1.0 node_modules/express ├── methods@0.0.1 ├── fresh@0.1.0 … Continue reading Express for Node.js

Installing Node.js on Ubuntu

I would continue explaining more about Node.js, but for all those folks who do things and understand them, here's the way to install Node.js on Ubuntu machines.. You need to first install necessary packages like git-core and libssl-dev sudo apt-get update sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install git-core Download the latest … Continue reading Installing Node.js on Ubuntu

Node.js Async

In my previous post I discussed how asynchronous (with callbacks) nature of Node.js is useful to develop non-blocking server side implementations. Let's now see how async functions are developed with an example. Async functions are typically developed with a single callback with result arguments and an optional error. Here's an example code: Now if … Continue reading Node.js Async

Understanding node.js

Essentially Node has an approach of making I/O operations non-blocking. All the I/O operations run independently and generate an event when they are done.  Node follows an execution model of having an event loop (a concept existing in JavaScript) that handles events that are generated by I/O operations ( like database, HTTP requests, file I/O … Continue reading Understanding node.js


This is an introduction post to node.js.. Node.js is an event driven, non blocking (async) I/O style software that is used to develop server side implementations. (If you're a Python fan, it's like programming in Twisted!). It's also built on Google's V8 JavaScript engine. Like other event driven servers, Node.js, runs an event loop and … Continue reading Node.js