Skip to main content

Posts

Node.js Modules

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
Recent posts

Download Node.js for Windows

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

More about Node.js

More about Node.js Hello Folks! Welcome to the part 2 of the Introduction to Node.js blog. Before you read this blog further, it is must to read the previous blogs for better understanding. Here is the  Introduction to Node.js  link. So let's proceed to learn node.js . In this post we will mainly discuss on node.js architecture, the event loop and the thread pool.  Node.js Architecture: As said before, Node.js is  majorly dependent upon the Chrome's V8 engine and LIBUV library for its working. Now I guess you know what is V8 Engine and LIBUV library from the Part 1 of this blog. It is to be mentioned that LIBUV is a library in Node.js which is written in C++ and V8 Engine also uses C++ besides using JavaScript. Therefore, Node.js is not just JavaScript as you might have thought. Now, its time for us to discuss in detail the "Event Loop" and the "Thread Pool" in Node.js. The Event Loop enables Node.js to perform non-blocking I/O operat

Introduction to Node.js

Introduction to Node.js Hello Folks! This blog is for the new Node.js enthusiasts who wants to learn node.js . Here you will learn node.js online from me and you will learn node.js for free . I will guide on how to learn node.js and will help you to learn node.js from scratch. Prerequisites:  Welcome to the world of Back-end web development. Throughout this blog posts, I will guide you to become a backend developer . Before we dive deep into the topic, let us brush up the prerequisites. A website has 2 parts, the "Frontend" and the "Backend" . The Front-end of a website generally refers to the side of the website with which the user interacts. It's the User Interface(U.I.)  of the website. In simple terms, it consists of all those elements which we see and interact with after the web page loads in our computer. It is sometimes also known as "Client-side" of the web page. The Backend web development refers to the server-