DevOps Open-source 3 Tier Project Deployment | Virtualisation on AWS EC2
In this project, I've hosted a 3-tier application wanderlust which I have collected from github and hostted it on my local machin first then migreted in AWS by using virtualisation.
wanderlust is a three-tier web app which is having three parts: Frontend is made in ReactJS, Backend in NodeJS and a database in MongoDB.
First I've collected the code from github, then tested in my local machine. Then I've created a VM on AWS and hosted this web app on the virtual server.
Steps for creationg a VM on AWS:
-
Select your region and go to crate instance then name your VM.
-
Create and select your keypair and download your secret key:
After your instance is ready you can access it by ssh or your preferred method. Here I've connected through SSH and then selected keypair which was created in step 4.
Then I cloned the wanderlust web app to my VM and then installed nodejs, npm and after thet installed reactjs inside my VM. Then conncetd backend follewed by the steps from wanderlust.
Then I changed the local host IP under the env file and made it accessible from anywhere 0.0.0.0 under port 5000.
After that, I installed mongoDB and connected the database.
Then I changed the local host IP under the env file and made it accessible from anywhere 0.0.0.0 under port 5173.
Live Project https://wanderlust-beta.vercel.app/
Code link: https://github.com/Rupam200116/wanderlust