How to deploy Node.js application on AWS with Github
<p>As a very first step, we need to configure an EC2 instance and securely SSH into it. To learn how to create an EC2 Linux(Amazon Linux) instance, please refer to my previous article on “<a href="https://medium.com/@sumantmishra/securely-ssh-into-aws-ec2-linux-instance-42ad8a322ac5" rel="noopener">Securely SSH into AWS EC2 Linux instance</a>”.</p>
<p>After successful SSH into EC2 instance, we will follow the below steps to deploy a sample NodeJS application on the EC2 instance:</p>
<ul>
<li>Install NodeJS and NPM using nvm</li>
<li>Install Git and clone repository from GitHub</li>
<li>Install dependencies</li>
<li>Run the application</li>
<li>Configure security group to access via public URL</li>
<li>Access the application in browser</li>
</ul>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/0*rf6Pmv3nCyzNkktG" style="height:465px; width:700px" /></p>
<p>Photo by <a href="https://unsplash.com/@diskander?utm_source=medium&utm_medium=referral" rel="noopener ugc nofollow" target="_blank">David Iskander</a> on <a href="https://unsplash.com/?utm_source=medium&utm_medium=referral" rel="noopener ugc nofollow" target="_blank">Unsplash</a></p>
<h1>Install NodeJS and NPM using nvm</h1>
<p>Install node version manager (nvm) by typing the following at the command line.</p>
<p><a href="https://sumantmishra.medium.com/how-to-deploy-node-js-app-on-aws-with-github-db99758294f1"><strong>Click Here</strong></a></p>