Skip to content

gvjkumar2004/AWS_Deploy_Firstapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Node.js Application

This is a Node.js application designed to be deployed on an AWS EC2 instance.

Features

  • Express.js for handling HTTP requests
  • Basic routing setup
  • Ready for deployment on AWS EC2

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js installed (version 14.x or higher)
  • npm (Node Package Manager)
  • Git

Installation

  1. Clone the repository:

    git clone https://github.com/gvjkumar2004/AWS_Deploy_Firstapp.git
  2. Navigate to the project directory:

    cd AWS_Deploy_Firstapp
  3. Install the dependencies:

    npm install

Usage

  1. Run the application:

    node server.js
  2. Open your browser and visit:

    http://localhost:3000
    

Deployment

Deploying on AWS EC2

  1. 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).
  2. Connect to your EC2 instance:

    ssh -i your-key-pair.pem ubuntu@your-ec2-public-dns
  3. Install Node.js and Git on your EC2 instance:

    sudo apt update
    sudo apt install nodejs npm git -y
  4. Clone the repository on your EC2 instance:

    git clone https://github.com/gvjkumar2004/AWS_Deploy_Firstapp.git
    cd AWS_Deploy_Firstapp
  5. Install the dependencies:

    npm install
  6. Start the application:

    node server.js
  7. Access your application via the public DNS of your EC2 instance:

    http://your-ec2-public-dns:3000
    

Contributing

Contributions are always welcome! Please fork this repository and open a pull request to add enhancements or bug fixes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published