Vaidikalaya

Text editor and prerequisites


All right, so as we have already discussed the basic definition of Node.js, let’s now talk about the text editors and prerequisites of learning Node.js, which will make your learning path easy.


Prerequisites for Node.js

1. JavaScript

Node is written in JavaScript, So you must have a good understanding of the basics and the intermediate concepts of JavaScript such as expressions, loops, scopes, arrays, objects, callbacks, this keyword, etc. So, I would recommend you have a basic knowledge of JavaScript concepts before diving into Node.js.


2. Asynchronous Programming

Asynchronous programming is a form of parallel programming that allows a unit of work to run separately from the primary application thread. When the work is complete, it notifies the main thread (as well as whether the work was completed or failed). There are numerous benefits to using it, such as improved application performance and enhanced responsiveness.


3. CLI

CLI (Command Line Interface) is one of the most important and useful tools to learn before going for Node.js. It is a text-based user interface through which you can type commands to make your computer execute certain tasks. It truly makes our lives a lot easier as a programmer. If you are comfortable using the CLI, then you’ll be able to run nvm commands, and npm commands and run your Node.js applications very easily.


4. NPM

NPM( Node Package Manager) is a very powerful tool that helps in managing the server-side dependencies of any Node.js project. Through NPM, one can easily install, upgrade or even delete various libraries or packages of JavaScript when required.


5. NVM

NVM ( Node Version Manager) which helps you to manage between different versions of Node.js. Consider one situation when you’re working on different projects which require different Node.js versions, in that case, nvm manages the situation very easily and helps you to switch between different versions of Node.js at the same time. So, you should have some basic knowledge of nvm and its working as well.


6. HTTP

Node.js is used for the back-end so you need to retrieve some data from a data source or send the data, and in that case, or similar cases, you’ll need to make an API request to that server via HTTP. So it will be beneficial for you to have some knowledge about the HTTP request and some of its useful methods like GET, POST, PUT, etc.


7. ES6

ES6 or ECMAScript 2015 is basically a standard for scripting languages like JavaScript. As we know JavaScript is an evolving language and ES6 is the second major revision in JavaScript which introduces some really useful features to the language, such as let and const keywords, arrow functions, promises, default parameters, the For/of loop, JavaScript classes, and many more. So, I would highly recommend being familiar with these new features of JavaScript as well.


Text Editors for Node.js

Text editors will be used to type your program. There are many text editors or IDEs available for writing and executing node.js code.

In this tutorial, We are using Visual Studio Code, but you can also use other editors, like Atom and Sublime Text if you are more comfortable with those.


List Of IDEs for Node.js

1. Notepad ++

Download Link: https://notepad-plus-plus.org/downloads/


2. Visual Studio Code

Download Link: https://code.visualstudio.com/


3. Sublime Text

Download Link: https://sublimetext.com/download/


4. Atom

Download Link: https://atom.en.uptodown.com/windows/

After setting up the node environment, you are ready to write for node.js code. So follow further chapters to learn node.js tutorials.