{"id":18852085,"url":"https://github.com/verma-kunal/aws-session","last_synced_at":"2025-05-15T10:07:29.483Z","repository":{"id":65339975,"uuid":"589840029","full_name":"verma-kunal/AWS-Session","owner":"verma-kunal","description":"Deploying a Node Js Application on AWS EC2","archived":false,"fork":false,"pushed_at":"2024-05-30T03:18:46.000Z","size":39797,"stargazers_count":215,"open_issues_count":11,"forks_count":2187,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-08T08:52:24.452Z","etag":null,"topics":["aws-ec2","nodejs","stripe-api"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/verma-kunal.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":"2023-01-17T03:54:55.000Z","updated_at":"2025-05-04T14:57:02.000Z","dependencies_parsed_at":"2024-11-23T02:00:47.218Z","dependency_job_id":"e6628015-d975-4274-abfa-72dd828a5199","html_url":"https://github.com/verma-kunal/AWS-Session","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verma-kunal%2FAWS-Session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verma-kunal%2FAWS-Session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verma-kunal%2FAWS-Session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verma-kunal%2FAWS-Session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verma-kunal","download_url":"https://codeload.github.com/verma-kunal/AWS-Session/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319720,"owners_count":22051073,"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":["aws-ec2","nodejs","stripe-api"],"created_at":"2024-11-08T03:37:58.248Z","updated_at":"2025-05-15T10:07:24.471Z","avatar_url":"https://github.com/verma-kunal.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying a Node Js Application on AWS EC2\n\n### Testing the project locally\n\n1. Clone this project\n```\ngit clone https://github.com/verma-kunal/AWS-Session.git\n```\n2. Setup the following environment variables - `(.env)` file\n```\nDOMAIN= \"\"\nPORT=3000\nSTATIC_DIR=\"./client\"\n\nPUBLISHABLE_KEY=\"\"\nSECRET_KEY=\"\"\n```\n3. Initialise and start the project\n```\nnpm install\nnpm run start\n```\n\n### Set up an AWS EC2 instance\n\n1. Create an IAM user \u0026 login to your AWS Console\n    - Access Type - Password\n    - Permissions - Admin\n2. Create an EC2 instance\n    - Select an OS image - Ubuntu\n    - Create a new key pair \u0026 download `.pem` file\n    - Instance type - t2.micro\n3. Connecting to the instance using ssh\n```\nssh -i instance.pem ubunutu@\u003cIP_ADDRESS\u003e\n```\n\n### Configuring Ubuntu on remote VM\n\n1. Updating the outdated packages and dependencies\n```\nsudo apt update\n```\n3. Install Git - [Guide by DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-22-04) \n4. Configure Node.js and `npm` - [Guide by DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04)\n\n### Deploying the project on AWS\n\n1. Clone this project in the remote VM\n```\ngit clone https://github.com/verma-kunal/AWS-Session.git\n```\n2. Setup the following environment variables - `(.env)` file\n```\nDOMAIN= \"\"\nPORT=3000\nSTATIC_DIR=\"./client\"\n\nPUBLISHABLE_KEY=\"\"\nSECRET_KEY=\"\"\n```\n\u003e For this project, we'll have to set up an [Elastic IP Address](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) for our EC2 \u0026 that would be our `DOMAIN`\n\n3. Initialise and start the project\n```\nnpm install\nnpm run start\n```\n\n\u003e NOTE - We will have to edit the **inbound rules** in the security group of our EC2, in order to allow traffic from our particular port\n\n### Project is deployed on AWS 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverma-kunal%2Faws-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverma-kunal%2Faws-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverma-kunal%2Faws-session/lists"}