Step by Step building Node.js based REST API to perform CRUD operations on MongoDB.

Download Source Code of this post from GitHub here Node.js is one of the greatest platform to create backend of the application. Does not matter whether you are creating a mobile app for iOS or Single Page Web application using Angular, you will need a backend for the application. Usually you perform databases operations, authentications, … Continue reading Step by Step building Node.js based REST API to perform CRUD operations on MongoDB.

Create a Router in Node.js using crossroads

Routers are very important in any web server. Primary function of a Router is to accept request and on basis of requested URL trigger desired process. Consider a rough example in that client is requesting http://abc.com/users/myprofile and there request may serve from URL http://abc.com/node/2 assuming user is stored in node with id 2. In Node.js … Continue reading Create a Router in Node.js using crossroads

Error: `doctype 5` is deprecated, you must now use `doctype html`: Node.js Express App bug solved

I am using Visual Studio to create Node.js application. I created a Node project by selecting Blank Express Application project template from JavaScript project type. After creating project I pressed F5 to run application. On running application I got following error Solving this error is very easy. From views folder in project open layout.jade. You … Continue reading Error: `doctype 5` is deprecated, you must now use `doctype html`: Node.js Express App bug solved