<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mattia Pomelli</title>
    <description>The latest articles on DEV Community by Mattia Pomelli (@mattiapomelli).</description>
    <link>https://dev.to/mattiapomelli</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F923844%2Fc8f4bcf7-f9c9-4bae-adc5-c796ef4ad0c8.png</url>
      <title>DEV Community: Mattia Pomelli</title>
      <link>https://dev.to/mattiapomelli</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mattiapomelli"/>
    <language>en</language>
    <item>
      <title>How to deploy a Node.js server with AWS EC2, nginx and SSL</title>
      <dc:creator>Mattia Pomelli</dc:creator>
      <pubDate>Sat, 10 Sep 2022 06:47:30 +0000</pubDate>
      <link>https://dev.to/mattiapomelli/how-to-deploy-a-nodejs-server-with-aws-ec2-nginx-and-ssl-4gb5</link>
      <guid>https://dev.to/mattiapomelli/how-to-deploy-a-nodejs-server-with-aws-ec2-nginx-and-ssl-4gb5</guid>
      <description>&lt;p&gt;Okay, you have just finished to develop your Node.js backend, but now what? It’s time to make it live, so that you can use it in a real project.&lt;/p&gt;

&lt;p&gt;In this guide I’ll show you step-by-step how to deploy your Node.js server so that you can make it accessible through the Internet.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This post has been written in collaboration with &lt;a href="https://twitter.com/valdozzz1"&gt;Edvaldo Gjonikaj&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating an EC2 instance
&lt;/h3&gt;

&lt;p&gt;In order to deploy our application, we first need a computer that is gonna run it. There are several options for this, but we’re going to choose &lt;a href="https://aws.amazon.com/ec2/"&gt;AWS EC2&lt;/a&gt;, a popular service that allows users to rent virtual machines to run their applications on. &lt;/p&gt;

&lt;p&gt;First of all, you need to have an AWS account. If you don’t have one, you can create one &lt;a href="https://portal.aws.amazon.com/billing/signup"&gt;here&lt;/a&gt;. If you have just signed up, you’ll have a one year free tier that allows you to try out many services, including EC2!&lt;/p&gt;

&lt;p&gt;Great, now that you have an AWS account you’re ready to create an EC2 instance, which is basically a virtual machine in the cloud for running applications on AWS infrastructure.&lt;/p&gt;

&lt;p&gt;In order to create it, follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to your &lt;a href="https://console.aws.amazon.com/"&gt;AWS console&lt;/a&gt; and look for the EC2 service (type it in the searchbar or look through the list of services)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a new instance&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--moWHYMiu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/svkpsmelo1sr4r7ww7ft.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--moWHYMiu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/svkpsmelo1sr4r7ww7ft.png" alt="AWS EC2" width="880" height="472"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Choose a name for your instance and select the type of operating system that is gonna have. I prefer to use ubuntu, which is a pretty common choice (note: the commands that this guide we’ll cover will only be valid for UNIX like operating systems).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Qz1tgpf8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rns47ssqpkj0wryk12q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Qz1tgpf8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rns47ssqpkj0wryk12q.png" alt="AWS EC2" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make sure to allow HTTP and HTTPs traffic. This will expose ports 80 and 443 to the Internet so that our instance can receive HTTP requests.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2zg14W10--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2e8b8hpilp3u7uvm0o8n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2zg14W10--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2e8b8hpilp3u7uvm0o8n.png" alt="AWS EC2" width="880" height="496"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You now need to create a key pair (or select an existing one if you already have it), which is a sort of secret password that we can use to prove our identity when connecting to our instance. Make sure to download the key and store it in a secure location on your device. We’re gonna need this later.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LGN0mCUA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2hve1p25nf6931w1exdd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LGN0mCUA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2hve1p25nf6931w1exdd.png" alt="AWS EC2" width="880" height="498"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can leave all the other settings as default and click on “Launch instance” to start it.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That’s it! You now have a virtual machine up and running where you can deploy your Node.js server on.&lt;/p&gt;

&lt;h3&gt;
  
  
  Connecting to the EC2 instance
&lt;/h3&gt;

&lt;p&gt;In order to interact with our instance we need first to connect to it. We’re going to do this using &lt;a href="https://en.wikipedia.org/wiki/Secure_Shell"&gt;SSH&lt;/a&gt;, a protocol that allows us to connect securely to a remote computer.&lt;/p&gt;

&lt;p&gt;In order to connect into our instance with SSH we need to specify three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;a public DNS name or IP address of the instance we want to connect to. Our instance has been automatically given a public IPv4 address, which we can find on the instance summary page&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HPFiLHD7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/743mxgo54myyjatshkko.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HPFiLHD7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/743mxgo54myyjatshkko.jpeg" alt="AWS EC2" width="880" height="497"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;the private key that we have previously downloaded, needed to prove our identity&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;the username of the user that we want to connect with. In Ubuntu, there is a default “ubuntu” user that we can use.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Alright, we first need to change access permissions for our private key file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;chmod &lt;/span&gt;400 &amp;lt;path_to_your_key&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And then we can connect to our instance with SSH by running this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh ubuntu@&amp;lt;public_IP&amp;gt; &lt;span class="nt"&gt;-i&lt;/span&gt; &amp;lt;path_to_your_key&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should now be connected to your instance. You are basically inside a remote computer where you can hack around and do stuff like you do on your personal device.&lt;/p&gt;

&lt;h3&gt;
  
  
  Installing Node.js
&lt;/h3&gt;

&lt;p&gt;To run a Node.js server, we need of course to have Node.js installed on our machine.&lt;/p&gt;

&lt;p&gt;It’s pretty simple, you can do it by running the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get update

&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;nodejs npm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To check everything went well, run &lt;code&gt;node -v&lt;/code&gt; and &lt;code&gt;npm -v&lt;/code&gt; and you should get the versions that have been installed. &lt;/p&gt;

&lt;h3&gt;
  
  
  Cloning the repository
&lt;/h3&gt;

&lt;p&gt;The next step is to clone the repository containing your Node.js server code so that we can execute it. Git should be already installed in the machine, but you can double-check by running &lt;code&gt;git --version&lt;/code&gt; and run &lt;code&gt;sudo apt install git&lt;/code&gt; if it’s not.&lt;/p&gt;

&lt;p&gt;If you want to clone a private repository you need to authenticate yourself by &lt;a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"&gt;using an ssh key&lt;/a&gt; or a &lt;a href="https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token"&gt;personal access token&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For this guide, we’re going to use a public repo so that we don’t need to login. It is a simple Node.js hello world that runs on port 3000.&lt;/p&gt;

&lt;p&gt;To clone the repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/johnpapa/node-hello
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then install dependencies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;node-hello

npm &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Setup nginx
&lt;/h3&gt;

&lt;p&gt;In order to make our Node.js server accessible through the Internet we’re going to use &lt;a href="https://www.nginx.com/"&gt;nginx&lt;/a&gt; as a reverse proxy.&lt;/p&gt;

&lt;p&gt;Basically our Node.js server will run on a port that won’t be exposed to the Internet (like 3000). Then we’re going to setup nginx to listen to HTTP requests on port 80 (which we have exposed to the Internet when creating our instance) and redirect the incoming traffic to our Node.js server, which will be responsible for handling those requests and generating the response.&lt;/p&gt;

&lt;p&gt;You may be wondering why we don’t directly run Node.js on port 80 and forget about nginx. There are several reasons to choose nginx:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it’s more performant and can handle a high volume of traffic&lt;/li&gt;
&lt;li&gt;it enables us to scale better if we need it further on&lt;/li&gt;
&lt;li&gt;it makes it easier to setup SSL&lt;/li&gt;
&lt;li&gt;it simplifies privilege handling and port assignment&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Alright, now that we know what we’re doing, let’s set it up. First of all, install nginx:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you now type the public IP of your instance in a browser you should see nginx landing page, confirming that nginx is correctly installed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JR47L3ce--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l078um02gbiadqz7kziq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JR47L3ce--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l078um02gbiadqz7kziq.png" alt="Nginx landing page" width="880" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To set up the reverse proxy, create a new file configuration file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo touch&lt;/span&gt; /etc/nginx/sites-enabled/&amp;lt;you_app_name&amp;gt;.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now write the following configuration, where we’re basically telling nginx to listen on port 80 and redirect all the incoming traffic to port 3000, which is where our Node.js server will be running.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;nano /etc/nginx/sites-enabled/&amp;lt;you_app_name&amp;gt;.conf

&lt;span class="c"&gt;# write this:&lt;/span&gt;
server &lt;span class="o"&gt;{&lt;/span&gt;
    listen 80 default_server&lt;span class="p"&gt;;&lt;/span&gt;
    listen &lt;span class="o"&gt;[&lt;/span&gt;::]:80 default_server&lt;span class="p"&gt;;&lt;/span&gt;

    server_name &amp;lt;your_domain&amp;gt;&lt;span class="p"&gt;;&lt;/span&gt;

    location / &lt;span class="o"&gt;{&lt;/span&gt;
        proxy_set_header Host &lt;span class="nv"&gt;$host&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                proxy_set_header X-Real-IP &lt;span class="nv"&gt;$remote_addr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                proxy_pass http://localhost:3000&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you don’t have a domain pointing to your IPv4 address, then you can simply put the IP address itself as the &lt;code&gt;server_name&lt;/code&gt;. But keep in mind that if you want to set up SSL you’re going to need a domain (you can always edit this configuration later).&lt;/p&gt;

&lt;p&gt;Also, remove the default configuration file in order to avoid any collisions with the new configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo rm&lt;/span&gt; &lt;span class="nt"&gt;-rf&lt;/span&gt; /etc/nginx/sites-enabled/default
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, restart nginx in order for the changes to take place:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl reload nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Running the Node.js server
&lt;/h3&gt;

&lt;p&gt;Great, so now nginx is working and redirecting traffic to our Node server. But our Node server is actually nor running yet, so this is what we need to do know.&lt;/p&gt;

&lt;p&gt;We usually start a Node server by running &lt;code&gt;npm start&lt;/code&gt;, but the problem with doing this is that it will stop as soon as we close the terminal. Also, if some error occurs and the app crashes, it won’t restart automatically.&lt;/p&gt;

&lt;p&gt;That’s why we’re going to use &lt;a href="https://pm2.keymetrics.io/"&gt;pm2&lt;/a&gt;, a process manager that will help us keep our server always running.&lt;/p&gt;

&lt;p&gt;To install pm2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo install &lt;/span&gt;pm2 &lt;span class="nt"&gt;-g&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then go to the Node app directory and start the server with pm2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;node-hello

&lt;span class="nb"&gt;sudo &lt;/span&gt;pm2 start &lt;span class="s2"&gt;"npm start"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it! If you now navigate to the IP address of your instance you should see a response coming from our Node.js server.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1KSmbIwn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7kas21hmve3nuoxtv82o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1KSmbIwn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7kas21hmve3nuoxtv82o.png" alt="Live website" width="880" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To make sure that pm2 automatically runs when the server restarts run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;pm2 startup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Setup SSL
&lt;/h3&gt;

&lt;p&gt;The last step is to setup SSL so that we can make the connection to our server secure.&lt;/p&gt;

&lt;p&gt;To enable SSL on our server we need to create an SSL certificate and install it on our server. A certificate is basically a key-pair that can be used to establish an encrypted connection.&lt;/p&gt;

&lt;p&gt;You’re going to need a domain for this, since an SSL certificate is tied to a domain name, and not to an IP address. To setup your domain go to your domain provider console and create an A record in your DNS configuration pointing to the public IP of your instance.&lt;/p&gt;

&lt;p&gt;If you navigate to your domain using HTTP you should now see the response from your server. Also make sure to set &lt;code&gt;server_name&lt;/code&gt; as your domain in you nginx configuration file, if you haven’t done it before.&lt;/p&gt;

&lt;p&gt;To set up SSL, we’re going to use certbot, a tool that helps us to generate free SSL certificates using &lt;a href="https://letsencrypt.org/"&gt;Let's Encrypt&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;First, install certbot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get &lt;span class="nb"&gt;install &lt;/span&gt;certbot python3-certbot-nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, generate an SSL certificate for the domain you have assigned to your server. You’ll need to respond to some prompts from certbot.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;certbot &lt;span class="nt"&gt;--nginx&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; &amp;lt;your_domain_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nginx will automatically reload with the new settings and will now be listening on port 443.&lt;/p&gt;

&lt;p&gt;Done! You can now navigate to your domain with HTTPs and you should see that a secure connection is established.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_3f02eoI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hxwqadyoj7ine12o3wwl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_3f02eoI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hxwqadyoj7ine12o3wwl.png" alt="Live website" width="880" height="267"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;We’re done! That was quite a bit of work, but our node server is now live and everyone can send requests to it.&lt;/p&gt;

&lt;p&gt;I think that knowing to deploy a server from scratch is a very valuable skill for a web developer. Learning to do it has helped me to understand many concepts and I now have a much more clear idea of how things work behind the scenes. Hope this guide was useful to you as well.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
