What Node.js Can Do

What Node.js Can Do


Many of our customers love JavaScript, but to build scalable browser and server applications they need Node.js.

This rockstar open-source cross-platform environment allows for rapid development of applications, which leads to high productivity, and therefore quicker deployment. Node.js is an event-based, non-blocking, asynchronous I/O framework that uses Google’s V8 JavaScript engine and libuv library.

A brand new Node.js Selector on our Control Panel’s allows users to choose a specific version of Node.js in order to host their JavaScript apps using Node.js 6.x, 8.x, 9.x, 10.x or 11.x. Our Node.js selector provides our customers with ultimate flexibility and features a friendly user interface that will help new users to get acquainted with the Node.js selector faster.

How to manage applications

End User interface allows end users to setup and manage Node.js for their web applications.

User Interface

The columns in the list.

  • App URI — application URI including the domain.
  • App Root Directory —  application root directory relative to user’s home.
  • Mode — can be production or development.
  • Status — started/stopped — displays if an application is running or not and version of application.
  • Actions — allows to start, restart, stop, edit, and remove a particular application.

Web Applications page is displayed.

Start application

To start a stopped application do the following:

  • Click Start icon in the Actions column in a stopped application row.
  • When an action is completed a Start icon changes to Stop icon.

Stop application

To stop a started application do the following:

  • Click Stop icon in the Actions column in a started application row.
  • When an action is completed a Stop icon changes to Start icon.

Restart application

To restart started application do the following:

  • Click Restart icon in the Actions column in a started application row. A current row is blocked and when a process is completed it will be unblocked.

Remove application

To remove application do the following:

  • Click Bin icon in the Actions column in a particular application row.
  • In the confirmation pop-up click Agree to start removing or Cancel to close pop-up.
  • When an action is completed an application will be removed from the Web Applications table and a confirmation pop-up will be displayed.

Edit application

To edit application do the following:

  • Click Pencil icon in the Actions column in a particular application row. A particular application tab opens.

The following actions are available:

  • Restart application — click Restart button.
  • Stop Node.js — click Stop Node.js button.
  • Run JavaScript script — click Run JS Script button to run a command specified in the Scripts section of the package.json file. Specify the name of the script to run plus any parameters then click Ok.
  • Remove application — click Delete button and confirm the action in a pop-up.
  • Change Node.js version — choose Node.js version from a drop-down.
  • Change Application mode — choose application mode from a drop-down. Available modes are Production and Development.
  • Specify Application root — specify in a field a physical address to the application on a server that corresponds with its URI.
  • Specify Application URL — specify in a field an HTTP/HTTPS link to the application.
  • Specify Application startup file — specify as NAME.js file.
  • Run npm install command — click Run npm install button to install the package(s) described in the package.json file.
  • Add Environment variables — click Add Variable and specify a name and a value.

Node.js a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications. To learn more about Node.js visit the project website.

About author