Node js and MongoDB app on AWS Node js and MongoDB app on AWS express express

Node js and MongoDB app on AWS


Deploy nodejs-express-mongoDB backend on AWS EC2 Ubuntu(16.04)

Back-end is a private repo on Gitlab.

Steps:1: Create EC2 Ubuntu server on AWS,

create EC2 instance

2: Connect personal computer with AWS server - use to control cloud Ubuntu server on personal computer,

Connecting Linux Instance from Windows Using PuTTY

3: Clone repo from Gitlab to Ubuntu server,

Configure ssh key on linux server

Clone gitlab repo to linux server

4: Install Nodejs and MongoDB on Ubuntu server,

Install Nodejs

Install MongoDB

Install MongoDB

5: Launch MongoDB and run Nodejs to start node server,

6: Test back-end server using Postman or Browser.

Other useful linkYouTube


AWS has a full documentation for this on their website. These documentations are extremely thorough and you should read these first.

Here's a tutorial from 2015.