NodeJS

Setup MongoDB in Node.js Azure VM with attached Data Disk as DB storage. · April 15, 2015 · Engineering NodeJS

To set up Node.js on Azure VM ckeckout the blog Create Azure Virtual Machine and Setup Node.js. So now moving forward, lets start with attaching a Data Disk to your previously set up Azure Virtual Machine. Attach a Data Disk to Azure Virtual Machine : 1. In the left…


Create Azure Virtual Machine and Setup Node.js. · March 19, 2015 · NodeJS Azure Virtual Machine Windows Azure

First of all lets start with how to deploy a Virtual Machine on Azure and for that primary requirement is to have an Azure account. So if you have one then login into your Azure account and follow the lead. Create a Virtual Machine : 1. In the left navigational bar…


Deleting a key in MongoDB document while using Mongoose · January 1, 2015 · Engineering NodeJS Mongoose Baucis

If you are using Mongoose as a layer to manage your MongoDB documents, you may have notices it acts weird when you try to delete a key from a document. As an example lets say you start off with the following document {a: X, b: Y, c: Z} and then…


NodeJS & Express - How to set multiple cookies in the same response object? · December 28, 2014 · Engineering NodeJS Express Cookie

If you are working in NodeJS platform and using Express framework, you may have come across this problem. Express 4.x’s style of setting multiple cookies multiple cookies for the same response object can run into incompatibilities with certain browsers. So, for example: var setMultipleCookies = function(res) { res.cookie…