Understanding routing of expressJS in Node.JS

For further advanced reading you may want to prefer REST API using express . I have started learning Node.JS and for web apps most popular ExpressJS framework. Well few call it big library as well. As learner does not matter whether big library or framework, let’s start exploring. While exploring express realised that one of … Continue reading Understanding routing of expressJS in Node.JS

Setup Express and run first application in Node.js

In this post we will take a step by step look in setting up Express and creating first application. I assume that you have already installed Node. If not then go ahead and install from here Once node.js is successfully installed, you can install Express framework by running npm install express on command prompt. After … Continue reading Setup Express and run first application in Node.js

Create REST API on Node.js using Visual Studio

Find Source Code on Github In this post I am not going to explain, what is REST? I assume you are already aware of REST concepts hence on this post to create REST API on Node.js which will perform CRUD operations. I am going to use Visual Studio to create Node Application and before you … Continue reading Create REST API on Node.js using Visual Studio

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

How to upload file in Node.js

In this post we will take a look on uploading a file on a web server created using Node.js. stream in Node.js makes this task super easy to upload files or for that matter working with any data transfer in between server and client. To upload file we will work with two modules http and … Continue reading How to upload file in Node.js

Create Echo Server in Node.js

Creating HTTP server in Node.js is very simple. In this post we will learn to create an echo server using Node.js. Before we move ahead, let us understand what an echo server is. In echo server, client sends data to server and server returns back same data to server. To create echo server, let us … Continue reading Create Echo Server in Node.js

Getting started with Node.js development in Visual Studio

Setup Environment on Windows machine for Node.js Development [Set up Sublime Text] Yes you love node.js. You love event driven development and yes multi thread is old fashioned now. Your new found love is ASYNCHRONOUS. Asynchronous everything, even reading file system. As all we know Microsoft loves Developers. So in Build they decided to give … Continue reading Getting started with Node.js development in Visual Studio

How to access functionality from various JS files in Node.js

In this post we will take a look on working with different JS files in Node.js. To start with let us assume a scenario that you have several js files and you need to work with these js files and use functionalities from these files in server.js. In Node a JS file is a module. … Continue reading How to access functionality from various JS files in Node.js

Configure Node.js for Windows

In this post we will walkthrough step by step to set up environment for node.js on windows. Very first navigate to Windows Azure Download page and select node.js for Windows to download Once you click on node.js download option for Windows you will get following confirmation windows. Click on Save File. After saving the file … Continue reading Configure Node.js for Windows

Creating Hello World Windows Azure Node.js Web Application

Node.js is enjoying much popularity and Glenn Block is helping us to bring it on Windows Azure. In this tutorial, I will walkthrough step by step to create your first Windows Azure Node.js Web Application. I have divided this tutorial in three parts as installing required SDK, creating Web Application and then publishing to Windows … Continue reading Creating Hello World Windows Azure Node.js Web Application