December 8, 2022

Steps to set up new AWS EC2 instace to deploy NodeJs application

 



Follow below steps to set up new NodeJs application on AWS EC2 instance:

1. AWS - Create new instace (Download .pem file)

2. Connect EC2 install using .pem file (sudo ssh -i <.pem file full path> ubuntu@<instace Public IPv4 address>)

2. Install nginx (sudo apt install nginx)

3. Install NodeJs (sudo apt install nodejs)

4. Install NPM (sudo apt install npm)

5. Install postgreSQL (sudo apt install postgresql postgresql-contrib)

6. Allow port(5432) for postgreSQL: Goto > instace > Security > Security Groups > Edit inbound rules > Add rule

6. Install git (sudo apt-get install git)

7. Install pm2 to run Node application (https://www.npmjs.com/package/pm2)

8. Now server ready to used you need to get git clone of your project repository.


Enjoy!

4 comments:

  1. Excellent post. It is very inspiring and informative. Thank you for sharing this
    Web Design Company Kerala

    ReplyDelete
  2. Being one of the best digital marketing company in kerala . Rgdiginut can deliver your best digital marketing service to make your business a brand

    ReplyDelete
  3. CHL Softech is a trusted Custom software development company that helps mid-sized and large companies drive digital transformation and make software As a software development services, we offer a wide range of software development company in delhi, that meet your business needs. In today's highly elusive and competitive market view, custom software development helps you to achieve the proper business skill. chl softech is a custom software development company that delivers you just the right software bespoke to your business needs.

    ReplyDelete
  4. I have just start to learn Web development, This blog is much informative for biggners. Most recommended for those who are new in this field.

    ReplyDelete

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...