This content originally appeared on DEV Community and was authored by Kartik
Recently, I embarked on a journey to deploy a web application on Amazon Web Services (AWS), and I'm excited to share the process with you. This blog post will guide you through the steps I took to get my application up and running on AWS.
Key Steps:
- Local Testing:
Clone the repository.
Set up environment variables in a .env file.
Install dependencies and start the project using npm.
- AWS EC2 Setup:
Create an IAM user with admin permissions.
Launch an EC2 instance using an Ubuntu image and a t2.micro instance type.
Connect to the instance using SSH.
Update packages and install Git, Node.js, and npm.
- Deployment on AWS:
Clone the repository on the remote VM.
Set up environment variables.
Assign an Elastic IP to the EC2 instance.
Install dependencies and start the project.
Update security group inbound rules to allow traffic on the specified port.
The project is then successfully deployed on AWS.🎉
For an in-depth learning experience and detailed steps, refer to my GitHub repository.
Happy deploying! 🚀
Feel free to leave any comments or questions below, and I'll be happy to help you with your deployment journey!
This content originally appeared on DEV Community and was authored by Kartik
Kartik | Sciencx (2024-07-28T18:07:42+00:00) Deploying a web application on AWS. Retrieved from https://www.scien.cx/2024/07/28/deploying-a-web-application-on-aws/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.