{"id":22796378,"url":"https://github.com/atulkamble/webapp","last_synced_at":"2026-04-11T18:02:45.721Z","repository":{"id":264986290,"uuid":"856688832","full_name":"atulkamble/webapp","owner":"atulkamble","description":"This project is a simple web application deployment guide on AWS EC2 using GitHub, Node.js, and CodeDeploy. It outlines the steps to set up an EC2 instance, clone a GitHub repository, install dependencies, configure the CodeDeploy agent, and deploy an Express.js app. ","archived":false,"fork":false,"pushed_at":"2024-09-24T16:32:09.000Z","size":2040,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T02:51:50.844Z","etag":null,"topics":["codebuild","codedeploy","codepipeline","continious-integration","continuous-deployment","deployment","deployment-scripts","ec2","expressjs","github","nodejs","pipeline","webapp"],"latest_commit_sha":null,"homepage":"http://linkedin.com/in/atuljkamble","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atulkamble.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-13T02:43:25.000Z","updated_at":"2024-09-24T16:32:12.000Z","dependencies_parsed_at":"2024-11-27T06:32:00.296Z","dependency_job_id":null,"html_url":"https://github.com/atulkamble/webapp","commit_stats":null,"previous_names":["atulkamble/webapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atulkamble%2Fwebapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atulkamble%2Fwebapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atulkamble%2Fwebapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atulkamble%2Fwebapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atulkamble","download_url":"https://codeload.github.com/atulkamble/webapp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246358321,"owners_count":20764366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codebuild","codedeploy","codepipeline","continious-integration","continuous-deployment","deployment","deployment-scripts","ec2","expressjs","github","nodejs","pipeline","webapp"],"created_at":"2024-12-12T05:12:38.878Z","updated_at":"2026-04-11T18:02:45.672Z","avatar_url":"https://github.com/atulkamble.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Webapp**\n\n### **Description**\nThis project provides a comprehensive guide to deploying a simple web application on AWS EC2 using GitHub, Node.js, and CodeDeploy. The guide includes setting up an EC2 instance, cloning a GitHub repository, installing necessary dependencies, configuring the CodeDeploy agent, and deploying an Express.js application. It also covers creating deployment scripts and setting up AWS CodeBuild for continuous integration to automate the deployment process.\n\n### **Tags**\n- AWS EC2\n- GitHub\n- CodeDeploy\n- Node.js\n- Express.js\n- Continuous Integration\n- Deployment Scripts\n- Web Application\n\n### **Steps for Deployment**\n\n1. **SSH into the EC2 Instance**\n   ```bash\n   cd Downloads\n   chmod 400 webapp.pem\n   ssh -i \"webapp.pem\" ec2-user@ec2-184-72-68-27.compute-1.amazonaws.com\n   ```\n\n2. **Clone the GitHub Repository**\n   ```bash\n   git clone https://github.com/atulkamble/webapp\n   cd webapp\n   ```\n\n3. **Install Git and Configure User Details**\n   ```bash\n   sudo yum install git -y\n   git config --global user.name \"Atul Kamble\"\n   git config --global user.email \"atul_kamble@hotmail.com\"\n   ```\n\n4. **Update EC2 Instance and Install Required Packages**\n   ```bash\n   sudo yum update -y\n   sudo yum install ruby -y\n   sudo yum install wget -y\n   ```\n\n5. **Install CodeDeploy Agent**\n   ```bash\n   cd /home/ec2-user\n   sudo wget https://aws-codedeploy-us-east-2.s3.us-east-2.amazonaws.com/latest/install\n   sudo chmod +x ./install\n   sudo ./install auto\n   sudo service codedeploy-agent start\n   sudo service codedeploy-agent status\n   ```\n\n6. **Set Up the Node.js Application**\n   - Initialize the Node.js project and install **Express**:\n     ```bash\n     npm init -y\n     npm install express\n     ```\n\n   - Create the application file (`app.js`):\n     ```bash\n     touch app.js\n     sudo nano app.js\n     ```\n\n   - Sample `app.js`:\n     ```javascript\n     const express = require('express');\n     const app = express();\n\n     app.get('/', (req, res) =\u003e {\n       res.send('Hello World from EC2!');\n     });\n\n     const port = process.env.PORT || 3000;\n     app.listen(port, () =\u003e {\n       console.log(`Server running on port ${port}`);\n     });\n     ```\n\n7. **Access the Application**\n   - Open the following in your browser (replace with the actual instance public IP):\n     ```\n     http://184.72.68.27:3000/\n     ```\n\n8. **Set Up Deployment Scripts**\n   - Create and edit the `appspec.yml` file:\n     ```bash\n     sudo touch appspec.yml\n     sudo nano appspec.yml\n     ```\n\n   - Create the `install_dependencies.sh` script:\n     ```bash\n     sudo touch install_dependencies.sh\n     sudo nano install_dependencies.sh\n     ```\n\n   - Create the `start_server.sh` script:\n     ```bash\n     sudo touch start_server.sh\n     sudo nano start_server.sh\n     ```\n\n   - Add the changes to Git and push them:\n     ```bash\n     git add .\n     git commit -m \"Added appspec.yml and deployment scripts\"\n     git push origin main\n     ```\n\n9. **Set Up CodeBuild (Optional for CI/CD)**\n   - Create and edit the `buildspec.yml` file:\n     ```bash\n     sudo touch buildspec.yml\n     sudo nano buildspec.yml\n     ```\n\n---\n\nThis `README.md` outlines all the key steps for deploying the web application using AWS services and GitHub. Let me know if any updates are needed!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatulkamble%2Fwebapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatulkamble%2Fwebapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatulkamble%2Fwebapp/lists"}