How to make percentage based radial or circular progress bar – css, js

Radial progress bar is not really a hard one to make. Here I’m describing it with a very simple example which is made with the gradient concept of css. The code snippet can be directly used and you also can modify the colors by changing the values of some variables in the javascript. HTML and

Read More…

Setup a Node server using express to host your files – Best practice

Node provides very low level api; thus it is very difficult to host your static files using only node. There are several Node modules which do this work, like node-static, paperboy and http-server. Today we are gonna show you how to to setup a complete Node server using the most popular module of Node, that

Read More…

Get working directory name and file name in Node

__dirname : full directory path __filename: exact file location Node provides two variables named “__dirname” and “__filename” who returns the directory path of the currently executing file and the exact location of the file respectively. Both of them return string. To know in depth go through the following. Get working directory path We can get

Read More…

How to debug Node.js application with Node’s built-in debugger client

Debugging is as important as development. If you can’t debug, you wont be able to develop big applications. Node uses V8 Runtime JavaScript engine, which comes with an extensive debugger. This debugger is accessible out of process via a TCP-Protocol. Node has a built-in client which uses this debugger. Today we are going to see

Read More…

Node environment vs Browser environment

Node and web browsers, both executes JavaScript, but Node does that in server side and browsers in client side. Node uses the same JavaScript engine which is the backbone of Chrome, but still we can find few differences between Node and Browser. Node Browser  Node doesn’t have a predefined “window” object cause it doesn’t have

Read More…

Beginners guide to make the first Node app and starting with express

After describing what Node.js is, why and where to use it, followed by the three different installation processes of Node, now we are all set to code our first Node program. Node program is nothing but a JavaScript program, just in a Node way. Lets see how to do that. Scaffolding a Node app Node

Read More…

Different instalation processes of Node with pros and cons

There are THREE POSSIBLE WAYS to install Node in your computer. You can choose any one of them. Installing Node by pre-compiled binary (Wizard) Probably the simplest way to install Node. Still you have a look at the advantages and disadvantages below and choose whether this is going to be the best suited installation process

Read More…

Node.js – reasons to use, pros and cons, best practices!

JavaScript has certain characteristics which makes it unique from the other dynamic languages. It has no concept of thread, but its model of concurrency is completely basing on events; i.e. it’s an event driven programming language. The same thing makes node server different than other web servers. This article describes what Node.js is, and how

Read More…