Node.js is an open-source server environment that is designed to develop scalable network applications. It is a cross-platform JavaScript runtime environment and runs the V8 JavaScript engine.
Features of Node.js include:
Event-driven or Asynchronous: The APIs of the Node.js library is asynchronous which means that Node.js based server does not have to wait for an API to return data. The server automatically moves to the next API after calling it and a notification mechanism of Events of Node.js helps the server to attain a response from the previous API call.
Faster: It is evident that the Node.js library is very fast when it comes to code execution as it is built on Google Chrome’s V8 JavaScript Engine.
Single-Threaded Yet Highly Scalable: Node.js makes use of a single-threaded model with event looping. Event mechanism helps the server to respond in a non-blocking manner and makes the server highly scalable as opposed to outdated servers that develop limited threads to manage requests. Node.js makes use of a single-threaded program and the same program has the potential to offer service to a much larger number of requests in comparison to traditional servers such as Apache HTTP server.
No Buffering: One of the best features of Node.js applications is that they never buffer any data as these applications simply output the data in chunks.
It will take a few minutes for your VM to be deployed. When the deployment is finished, move on to the next section.
Connect to virtual machine
Create an SSH connection with the VM.
bashCopy
ssh azureuser@10.111.12.123
Usage / Deployment Instructions
Step 1: Access the Nodejs in Azure Marketplace and click on Get it now button.
click on continue and create,
Step 2: In the create a virtual machine window, enter or select appropriate values for zone, machine type, and so on.
Click on Create;
Once your Deployment is successfull,
Step 3: Open putty and connect with your machine. Add IP address of the running EC2 instance.
Step 4: check node -v
Check npm –version
Check nvm –version