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