{"repo":"ntthanh2603/deploy-to-ec2-by-github-ci-cd","free":true,"listed":false,"github":"https://github.com/ntthanh2603/deploy-to-ec2-by-github-ci-cd","clone":"git clone https://github.com/ntthanh2603/deploy-to-ec2-by-github-ci-cd.git","description":"This repository provides a complete guide to deploying a NestJS application using GitHub Actions for CI/CD on an AWS EC2 instance.","language":"TypeScript","stars":16,"topics":["deployment","ec2","github-actions"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"A progressive Node.js framework for building efficient and scalable server-side applications. --- 📦 Project Description This repository provides a complete guide to deploying a NestJS application using GitHub Actions for CI/CD on an AWS EC2 instance. --- 🚀 Setup Instructions Step 1: Create and Connect to EC2 Instance 1. Launch an EC2 instance on AWS and download the key pair ( .pem file). 2. Move the .pem file to your project root or local SSH directory. 3. Connect to the instance via SSH (e.g., using Termius). 4. Install required tools such as Docker and PostgreSQL. Step 2: Clone the Repository and Run the App Step 3: Open Port 3000 on EC2 1. Go to your EC2 dashboard. 2.Select the instance → \"Security\" tab → Click on the Security Group. 3. Under \"Inbound Rules\", click Edit Inbound Rules → Add rule: - Type: Custom TCP - Port Range: 3000 - Source: Anywhere (or restrict by IP) 4. Save the rule. Step 4: Set Up GitHub Actions Runner on EC2 Step 5: Install Node.js on the Server (Optional)","default_branch":null,"files":null,"tree":[],"storefront":"/r/ntthanh2603","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ntthanh2603/deploy-to-ec2-by-github-ci-cd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}