{"id":48807238,"url":"https://github.com/earhackerdem/ec2-deploy","last_synced_at":"2026-04-14T05:39:54.795Z","repository":{"id":295000205,"uuid":"988759880","full_name":"earhackerdem/ec2-deploy","owner":"earhackerdem","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-23T04:12:11.000Z","size":178,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-23T04:35:58.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/earhackerdem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-23T03:14:25.000Z","updated_at":"2025-05-23T03:15:00.000Z","dependencies_parsed_at":"2025-05-23T04:47:00.170Z","dependency_job_id":null,"html_url":"https://github.com/earhackerdem/ec2-deploy","commit_stats":null,"previous_names":["earhackerdem/ec2-deploy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/earhackerdem/ec2-deploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earhackerdem%2Fec2-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earhackerdem%2Fec2-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earhackerdem%2Fec2-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earhackerdem%2Fec2-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/earhackerdem","download_url":"https://codeload.github.com/earhackerdem/ec2-deploy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earhackerdem%2Fec2-deploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31784254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-04-14T05:39:54.313Z","updated_at":"2026-04-14T05:39:54.790Z","avatar_url":"https://github.com/earhackerdem.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React App con Despliegue Automatizado a AWS EC2\r\n\r\nEste proyecto es una aplicación React con un pipeline de CI/CD configurado para desplegar automáticamente a AWS EC2 usando GitHub Actions.\r\n\r\n## 🚀 Características\r\n\r\n- Aplicación React básica\r\n- Pipeline de CI/CD con GitHub Actions\r\n- Despliegue automatizado a AWS EC2\r\n- Pruebas automatizadas\r\n- Configuración segura con variables de entorno\r\n\r\n## 📋 Prerrequisitos\r\n\r\n- Node.js 20.x\r\n- Una cuenta de AWS\r\n- Una instancia EC2 configurada\r\n- GitHub Actions habilitado en tu repositorio\r\n\r\n## 🔧 Configuración\r\n\r\n1. **Clonar el repositorio**\r\n   ```bash\r\n   git clone [URL-del-repositorio]\r\n   cd AI4Devs-DevSecOps-Extra\r\n   ```\r\n\r\n2. **Instalar dependencias**\r\n   ```bash\r\n   npm install\r\n   ```\r\n\r\n3. **Configurar variables de entorno**\r\n   \r\n   Copia el archivo `.env.example` a `.env` y configura las siguientes variables:\r\n   - `EC2_SSH_PRIVATE_KEY`: Tu clave SSH privada para EC2\r\n   - `AWS_ACCESS_KEY`: Tu clave de acceso AWS\r\n   - `AWS_ACCESS_ID`: Tu ID de acceso AWS\r\n   - `EC2_INSTANCE`: ID de tu instancia EC2\r\n   - `EC2_USER`: Usuario de tu instancia EC2\r\n\r\n4. **Configurar Secrets en GitHub**\r\n   \r\n   Añade los siguientes secrets en tu repositorio de GitHub:\r\n   - `EC2_SSH_PRIVATE_KEY`\r\n   - `AWS_ACCESS_KEY`\r\n   - `AWS_ACCESS_ID`\r\n   - `EC2_INSTANCE`\r\n   - `EC2_USER`\r\n\r\n## 🏃‍♂️ Desarrollo Local\r\n\r\n1. **Iniciar el servidor de desarrollo**\r\n   ```bash\r\n   npm start\r\n   ```\r\n\r\n2. **Ejecutar pruebas**\r\n   ```bash\r\n   npm test\r\n   ```\r\n\r\n3. **Crear build de producción**\r\n   ```bash\r\n   npm run build\r\n   ```\r\n\r\n## 📦 Despliegue\r\n\r\nEl despliegue se realiza automáticamente cuando:\r\n- Se abre un Pull Request a la rama `main`\r\n- Se actualiza un Pull Request existente en la rama `main`\r\n\r\nEl pipeline de GitHub Actions:\r\n1. Verifica el código\r\n2. Instala dependencias\r\n3. Ejecuta pruebas\r\n4. Construye la aplicación\r\n5. Despliega a EC2\r\n\r\n## 🛠️ Estructura del Proyecto ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearhackerdem%2Fec2-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fearhackerdem%2Fec2-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearhackerdem%2Fec2-deploy/lists"}