In my last blog, I gave a gist of information about Node js. In this blog, I'll be explaining you about creating a simple application using Node js. To check which version of Node installed on your machine, go to cmd terminal, and run $ node --version And to check the version of npm, run $ npm --version I am now using node: v6.9.5 and npm: v5.6.0 in my system. Before proceeding there is something you need to know. i.e., Modules So let me ask you " What are modules? " Modules are set of functions/methods, which is very much useful for any application to build. Normally Node js itself has its own built-in modules, which you can directly use in your application without installing them. Normally you can use modules in three different ways, 1. Using Node js built-in modules. 2. Writing your own modules and then use. 3. Installing external modules using npm and then use. I'll list some of the commonly used built-in modules of Node js version 6.10.3, whic...
When I hear about Node js, there were a lot of questions in my mind. There was a saying "You can do whatever you want, Javascript provides you". Back then, I was thinking whether I could do backend applications using Javascript also. Because when I started my career, there were front-end developers who purely work on HTML, CSS, Javascript and some of JS libraries. And back-end developers main concentration on Java, Spring, JSP etc. That time, I was asking myself that, is it really necessary to have two separate things when it comes to application development? But then Node js came into the picture. You may think, " What is Node js ?". Node js is an open source server-side framework which allows you to run javascript on the server. It runs on various platforms like Windows, Linux, Unix, Mac OS X, etc., It is built on Chrome's V8 Javascript Engine. A key point is to be noted here is Node js compiles in Runtime e...