My Blog

Node.js on cloud

1-click AWS Deployment    1-click Azure Deployment

1-click Google Deployment

Overview

Node.js is an open-source, cross-platform runtime environment for developing server-side Web applications. Although Node.js is not a JavaScript framework,many of its basic modules are written in JavaScript and developers can write new modules in JavaScript. The runtime environment interprets JavaScript using Google’s V8 JavaScript engine.

Node.js has an event-driven architecture capable of asynchronous I/O. These design choices aim to optimize throughput and scalability in Web applications with many input/output operations, as well as for real-time Web applications (e.g., real-time communication programs and browser games).

Node.js is an open source Javascript runtime environment for easily building server-side and networking applications. The platform runs on Linux, OS X, FreeBSD and Windows and its applications are written in JavaScript. Node.js applications can be run at the command line but we will teach you how to run them as a service, so they will automatically restart on reboot or failure, so you can use them in a production environment.

Node.js is owned by Node.js(https://nodejs.org/en/) and they own all related trademarks and IP rights for this software.

Cognosys Provides Hardened images of Node.js on the cloud ( AWS marketplace, Azure and Google Cloud Platform).

Deploy Node.js securely on cloud i.e. AWS marketplaceAzure and Google Cloud Platform (GCP)

Secured Node js on Ubuntu 14.04 LTS

Nodejs on cloud for AWS

Features

Major Features of  Nodejs

  • Event loop
  • Unified API
  • Package management
  • Asynchronous and Event Driven
  • Very Fast
  • Single Threaded but Highly Scalable
  • No Buffering
  • License

AWS

Installation Instructions For Windows

Note :  How to find PublicDNS in AWS

Step 1) RDP  Connection: To connect to the deployed instance, Please follow Instructions to Connect to Windows  instance on AWS Cloud

Connect to virtual machine using following RDP credentials :

  • Hostname: PublicDNS  / IP of machine
  • Port : 3389

Username: To connect to the operating system, use RDP and the username is Administrator.
Password : Please Click here  to know how to  get password .

Step 2) Application URL: Access the application via a browser at “http:/PublicDNS/Nodejs”

Step 3) Other Information:

1.Default installation path: will be in your root folder “C:\Program Files\Nodejs”
2.Default ports:

  • Windows Machines:  RDP Port – 3389
  • Http: 80
  • Https: 443

Configure custom inbound and outbound rules using this link

Installation Step by Step Screenshots

Azure

Installation Instructions For Ubuntu

Note: How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Azure Cloud

1) Download Putty.

2) Connect to virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)
Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2) Node.Js V6.10.1 Configuration Information

  1. A demo node.js application is configured on port 80.
  2. You can check same on “http://<Your IP>”
  3. Demo nodejs code is at location  “/root/demo_server.js”
  4. To remove the demo use below commands:

sudo service demo stop
sudo rm /etc/init/demo.conf

Step 3) Other Information:

Version: Node.Js V6.10.1

1. Default installation path:  “/var/www/html/
2.Default ports:

  • Linux Machines:  SSH Port – 22
  • Http: 80

Configure custom inbound and outbound rules using this link

3. To access Webmin interface for management please follow this link

Installation Instructions For Centos

Note: How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Centos instance on Azure Cloud

1) Download Putty.

2) Connect to virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)
Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2) Node.Js V6.10.1 Configuration Information

  1. A demo node.js application is configured on port 80.
  2. You can check same on “http://<Your IP>”
  3. Demo nodejs code is at location  “/root/demo_server.js”
  4. To remove the demo use below commands:

sudo systemctl stop demo
rm /etc/systemd/system/demo.service
sudo systemctl daemon-reload

Step 3)Other Information:

Version: Node.Js V6.10.1

1.Default installation path: “/var/www/html/”.

2. Default ports:

  • Linux Machines:  SSH Port – 22
  • Http: 80

Configure custom inbound and outbound rules using this link

3. To access Webmin interface for management please follow this link

Step by step Screenshot :

Google

Installation Instructions For Windows

Step 1) VM Creation:

1.Click the Launch on Compute Engine button to choose the hardware and network settings.
2.You can see at this page, an overview of Cognosys Image as well as some estimated costs of VM.
3.In the settings page, you can choose the number of CPUs and amount of RAM, the disk size and type etc.

Step 2) RDP Connection: To initialize the DB Server connect to the deployed instance, Please follow Instructions to Connect to Windows instance on Google Cloud

Step 3) Node.Js V6.10.1 Configuration Information

  1. A demo node.js application is configured on port 80.
  2. You can check same on “http://<Your IP>”
  3. Demo nodejs code is at location  “/root/demo_server.js”
  4. To remove the demo use below commands:

sudo service demo stop
sudo rm /etc/init/demo.conf

Step 4) Application URL: Access the application via a browser at http://<yourip>/node.js

A) You will see the page where you can configure your site data with site name, node.js admin name etc.

B) On next page you will see configuration success message.

C) You can login to the node.js admin portal with the node.js username and its generated password from point A shown above.

D) You can access the configured site at http://yourIP/node.js

Step 5) Other Information:

Version: Node.Js V6.10.1

1. Default installation path:  “/var/www/html/
2.Default ports:

  • Linux Machines:  SSH Port – 22
  • Http: 80

3. To access Webmin interface for management please follow this link

Installation Instructions For Redhat

Step 1) VM Creation:

  1. Click the Launch on Compute Engine button to choose the hardware and network settings.            2.You can see at this page, an overview of Cognosys Image as well as some estimated costs of VM.

3.In the settings page, you can choose the number of CPUs and amount of RAM, the disk size and type etc.

Step 2) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Google Cloud

1) Download Putty.

2) Connect to the virtual machine using SSH key

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Step 3) Node.Js V6.10.1 Configuration Information

  1. A demo node.js application is configured on port 80.
  2. You can check same on “http://<Your IP>”
  3. Demo nodejs code is at location  “/root/demo_server.js”
  4. To remove the demo use below commands:

sudo service demo stop
sudo rm /etc/init/demo.conf

Step 4) Application URL: Access the application via a browser at http://<yourip>/node.js

A) You will see the page where you can configure your site data with site name, node.js admin name etc.

B) On next page you will see configuration success message.

C) You can login to the node.js admin portal with the node.js username and its generated password from point A shown above.

D) You can access the configured site at http://yourIP/node.js

Step 5) Other Information:

Version: Node.Js V6.10.1

1. Default installation path:  “/var/www/html/
2.Default ports:

  • Linux Machines:  SSH Port – 22
  • Http: 80

3. To access Webmin interface for management please follow this link

Installation Instructions For CentOS

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to CentOS instance on Google Cloud

1) Download Putty.

2) Connect to virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine
Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2) Other Information:

1.Default ports:

  • Linux Machines:  SSH Port – 22

2. To access Webmin interface for management please follow this link

Videos

Secured Node js on Ubuntu 14.04 LTS

Node.js Explained

Node.js on cloud

Related Posts