What are the steps for deploying a Node js app, with express.js framework and MongoDB as database on AWS? This is my first such activity and I am not able to find any reliable source over the net.
-
First thing you should know is how AWS EC2 works (Talking about ubuntu OS / Linux). This link would help you to install node.js digitalocean.com/community/tutorials/… For mongoDB digitalocean.com/community/tutorials/…Crazy Engineer– Crazy Engineer2016-11-01 17:11:45 +00:00Commented Nov 1, 2016 at 17:11
-
I am working on a windows machine.Would this still be helpful?Nimit Bedi– Nimit Bedi2016-11-01 17:17:54 +00:00Commented Nov 1, 2016 at 17:17
-
1No It is for Linux only. For windows server everything is already defined on their websites for Mongo DB (docs.mongodb.com/v3.0/tutorial/install-mongodb-on-windows) Personally I wont suggest Windows Server because its really a pain. I would suggest to work on Linux serverCrazy Engineer– Crazy Engineer2016-11-01 17:23:37 +00:00Commented Nov 1, 2016 at 17:23
2 Answers
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,
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,
5: Launch MongoDB and run Nodejs to start node server,
6: Test back-end server using Postman or Browser.
Other useful linkYouTube
1 Comment
AWS has a full documentation for this on their website. These documentations are extremely thorough and you should read these first.