This is a Node.js application designed to be deployed on an AWS EC2 instance.
- Express.js for handling HTTP requests
- Basic routing setup
- Ready for deployment on AWS EC2
Before you begin, ensure you have met the following requirements:
- Node.js installed (version 14.x or higher)
- npm (Node Package Manager)
- Git
-
Clone the repository:
git clone https://github.com/gvjkumar2004/AWS_Deploy_Firstapp.git
-
Navigate to the project directory:
cd AWS_Deploy_Firstapp
-
Install the dependencies:
npm install
-
Run the application:
node server.js
-
Open your browser and visit:
http://localhost:3000
-
Launch an EC2 instance:
- Choose an Amazon Machine Image (AMI), e.g., Ubuntu.
- Choose an instance type, e.g., t2.micro.
- Configure instance details and security groups (allow HTTP and SSH access).
-
Connect to your EC2 instance:
ssh -i your-key-pair.pem ubuntu@your-ec2-public-dns
-
Install Node.js and Git on your EC2 instance:
sudo apt update sudo apt install nodejs npm git -y
-
Clone the repository on your EC2 instance:
git clone https://github.com/gvjkumar2004/AWS_Deploy_Firstapp.git cd AWS_Deploy_Firstapp
-
Install the dependencies:
npm install
-
Start the application:
node server.js
-
Access your application via the public DNS of your EC2 instance:
http://your-ec2-public-dns:3000
Contributions are always welcome! Please fork this repository and open a pull request to add enhancements or bug fixes.