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!
Top comments (0)