Hello Folks! Today we will will move ahead and learn node.js more. We are going to write our first code in node.js today. Then we will discuss about modules in node.js. This post will be long so please stay tuned and let's code together. Initializing the working directory: Open a suitable text editor of your choice. I will use VS Code for the whole series of Node.js to learn Node.js. From FILE , select OPEN FOLDER and select a working directory for your learning. The alternative to this is, right click on the desired working directory and select OPEN WITH CODE. After the working directory has opened we will have to initialize the directory for our Node.js activities. We do it by : >> npm init After that a series of questions are asked as shown in the following picture : We are asked package name, version, description, entry point, test command, git repository,keywords, author and license of our project. Don't worry. Here I have left it empty for
Hello Folks! If you have not read the previous two blogs, I will highly encourage you to go and read them, before you start with this. Introduction to Node.js More about Node.js We have learned a lot of theories and now its time to get our hands dirty. We will download node.js in this post. Though we will again discuss some theories in the later posts, in this blog I will teach you, how to download node.js and configure your computer to follow the later blogs. I will discuss it in step by step and I will highly recommend you to follow the steps with me. Step -1: First visit the website : https://nodejs.org/en/ Something like this will be shown : See, by default as my PC has Windows 8.1 and it has 64 bit architecture so I can download from here. Major Node . js versions enter Current release status for six months, which helps library authors time to contribute. LTS release status is "long-term support", which generally guarantees that b