node.js

When and How to use ASYNC forEach in node.js

In node.js we need to use database, file read/write, upload files frequently. But while using these we don't know which one of them(if multiple event occurs) will be going to end first. Sometimes we need them to execute all db query or file read operations one by…

How to create Virtual Hosts in node.Js and Ubuntu

Recently I needed to run multiple node.js application in my workspace which runs on ubuntu 12.04. It was not a issue, I just had to change the port numbers in the config.json file for each projects. But I also wanted to run then under separate hosts which…

Why I choose Sails.js?

Sails.js a framework which mimics MVC pattern to build enterprise-level Node.js application. It's very good to build realtime chat, dashboards using socket.io. Why Sails.js? It creats RESTful JSON API for your application automatically. For this reason you don't need any code to handle simple databse application…