{"id":26688162,"url":"https://github.com/juliusmarkwei/elastic-bn-lab","last_synced_at":"2025-10-14T05:40:55.987Z","repository":{"id":280526070,"uuid":"942288779","full_name":"juliusmarkwei/elastic-bn-lab","owner":"juliusmarkwei","description":"Deploying Node App using Elastic Beanstalk LAB","archived":false,"fork":false,"pushed_at":"2025-03-04T11:43:00.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T00:26:38.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/juliusmarkwei.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-03-03T21:50:57.000Z","updated_at":"2025-03-04T11:43:03.000Z","dependencies_parsed_at":"2025-03-04T09:33:15.542Z","dependency_job_id":"1f39f509-8dd5-425c-9a1d-e5aa107cf271","html_url":"https://github.com/juliusmarkwei/elastic-bn-lab","commit_stats":null,"previous_names":["juliusmarkwei/elb-lab","juliusmarkwei/elastic-bn-lab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juliusmarkwei/elastic-bn-lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliusmarkwei%2Felastic-bn-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliusmarkwei%2Felastic-bn-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliusmarkwei%2Felastic-bn-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliusmarkwei%2Felastic-bn-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliusmarkwei","download_url":"https://codeload.github.com/juliusmarkwei/elastic-bn-lab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliusmarkwei%2Felastic-bn-lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018009,"owners_count":26086235,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-03-26T13:17:55.545Z","updated_at":"2025-10-14T05:40:55.969Z","avatar_url":"https://github.com/juliusmarkwei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express + Elastic Beanstalk Deployment\n\nThis project demonstrates how to deploy an Express application to AWS Elastic Beanstalk.\n\n## Project Structure\n\n```\n/src\n  └── index.js\n```\n\n## Prerequisites\n\n-   Node.js\n-   AWS CLI\n\n## Setup\n\n1. **Clone the repository:**\n\n    ```bash\n    git clone https://github.com/juliusmarkwei/elb-lab.git\n    cd elb-lab/\n    ```\n\n2. **Install dependencies:**\n\n    ```bash\n    npm install\n    ```\n\n3. **Run the application locally:**\n\n    ```bash\n    npm run dev\n    ```\n\n    The server will start at `http://localhost:3000`.\n\n## GitHub Workflow for S3 Deployment\n\nThis project uses a GitHub workflow to deploy the application to an S3 bucket. Follow these steps to set up the workflow:\n\n1. **Create an S3 bucket:**\n\n    ```bash\n    aws s3 mb s3://your-bucket-name\n    ```\n\n2. **Add the GitHub workflow file:**\n\n    Create a new file at `.github/workflows/deploy.yml` with the following content:\n\n    ```yaml\n    name: Deploy to S3\n\n    on:\n        push:\n            branches:\n                - main\n\n    jobs:\n        deploy:\n            runs-on: ubuntu-latest\n\n            steps:\n                - name: Checkout code\n                  uses: actions/checkout@v2\n\n                - name: Install dependencies\n                  run: npm install\n\n                - name: Build project\n                  run: npm run build\n\n                - name: Zip files\n                  run: zip -r app-package.zip .\n\n                - name: Deploy to S3\n                  env:\n                      AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n                      AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n                  run: |\n                      aws s3 cp app-package.zip s3://your-bucket-name/\n    ```\n\n3. **Set up GitHub secrets:**\n\n    Go to your GitHub repository settings and add the following secrets:\n\n    - `AWS_ACCESS_KEY_ID`\n    - `AWS_SECRET_ACCESS_KEY`\n\n4. **Trigger the workflow:**\n\n    Push changes to the `main` branch to trigger the workflow. The application package will be uploaded to the specified S3 bucket.\n\n## Deployment from AWS Management Console\n\n1. **Upload the application package to S3:**\n\n    ```bash\n    aws s3 cp ./app-package.zip s3://your-bucket-name/\n    ```\n\n2. **Deploy from the AWS Management Console:**\n\n    - Go to the [Elastic Beanstalk Management Console](https://console.aws.amazon.com/elasticbeanstalk).\n    - Select your application.\n    - Click on \"Upload and Deploy\".\n    - Choose the application package from your S3 bucket.\n    - Click \"Deploy\".\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliusmarkwei%2Felastic-bn-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliusmarkwei%2Felastic-bn-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliusmarkwei%2Felastic-bn-lab/lists"}