{"id":31789295,"url":"https://github.com/ahmedheikall/serverless-application","last_synced_at":"2026-02-18T10:03:03.069Z","repository":{"id":314429538,"uuid":"1053486842","full_name":"AhmedHeikall/Serverless-Application","owner":"AhmedHeikall","description":"A fully serverless application built on AWS. Users can register for a raffle, view the number of participants, and the system randomly selects 3 winners using AWS Lambda and DynamoDB.","archived":false,"fork":false,"pushed_at":"2025-09-12T10:43:57.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-12T12:31:05.966Z","etag":null,"topics":["api-gateway","aws-lambda","cloud","dynamodb","s3","serverless"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/AhmedHeikall.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-09T14:12:33.000Z","updated_at":"2025-09-12T10:56:21.000Z","dependencies_parsed_at":"2025-09-12T12:31:08.754Z","dependency_job_id":"6e3196d6-56ed-4997-9ee5-484ed8b1edf3","html_url":"https://github.com/AhmedHeikall/Serverless-Application","commit_stats":null,"previous_names":["ahmedheikall/serverless-application"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/AhmedHeikall/Serverless-Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedHeikall%2FServerless-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedHeikall%2FServerless-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedHeikall%2FServerless-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedHeikall%2FServerless-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AhmedHeikall","download_url":"https://codeload.github.com/AhmedHeikall/Serverless-Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedHeikall%2FServerless-Application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004184,"owners_count":26083689,"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-10T02:00:06.843Z","response_time":62,"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":["api-gateway","aws-lambda","cloud","dynamodb","s3","serverless"],"created_at":"2025-10-10T14:50:31.482Z","updated_at":"2025-10-10T14:50:39.258Z","avatar_url":"https://github.com/AhmedHeikall.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Serverless Raffle Application\n\n![AWS](https://img.shields.io/badge/AWS-Serverless-orange?logo=amazon-aws\u0026logoColor=white)\n![Node.js](https://img.shields.io/badge/Node.js-18-green?logo=node.js\u0026logoColor=white)\n\nA fully **serverless application** built on **AWS**.  \nUsers can register for a raffle, view the number of participants, and the system randomly selects **3 winners** using AWS Lambda and DynamoDB.\n\n## Features\n\n- **User Registration** (name, email, phone)\n- **Count Participants** in real time\n- **Random Winner Draw** (3 unique winners)\n- **Scalable \u0026 Serverless** (no server management)\n- **Custom Domain + SSL/TLS** via Route53 + ACM\n- **Static Frontend** hosted on S3 + CloudFront\n\n## Architecture Components\n\n- **Amazon API Gateway** – Exposes REST endpoints for frontend → backend integration.\n- **AWS Lambda** – Three main functions:\n  - `apply.js` → Registers participants in DynamoDB.\n  - `count.js` → Returns number of registered participants.\n  - `draw.js` → Randomly selects winners and marks them in DynamoDB.\n- **Amazon DynamoDB** – Stores participants (email, phone, name, status).\n- **Amazon S3 + CloudFront** – Hosts static HTML frontend for users.\n- **Amazon Route 53 + ACM** – Custom domain with SSL/TLS certificate.\n- **IAM Roles \u0026 Policies** – Secure least-privilege access for Lambda \u0026 API Gateway.\n- **Amazon CloudWatch** – Centralized logging \u0026 monitoring for Lambda executions.\n\nUser (Browser)\n↓\nCloudFront (CDN) + S3 (Frontend Hosting)\n↓\nRoute 53 (Custom Domain + SSL/ACM)\n↓\nAPI Gateway (REST API)\n↓\nAWS Lambda Functions\n↓\nDynamoDB (Participants Table)\n↓\nCloudWatch (Logs/Monitoring)\n\n## How It Works\n\n1. **User opens the frontend (S3 + CloudFront)** and submits name, email, and phone.\n2. **API Gateway → Lambda (apply.js)** stores participant data in DynamoDB (`users_raffle` table).\n3. **count.js** returns the number of registered participants.\n4. **draw.js** randomly selects **3 winners**, updates their status (`won = yes`), and returns them.\n\n## Achievement\n\nThis project demonstrates real-world AWS serverless architecture, combining scalability, cost efficiency, and automation with Lambda, API Gateway, DynamoDB, S3, CloudFront, Route53, IAM, ACM, and CloudWatch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedheikall%2Fserverless-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedheikall%2Fserverless-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedheikall%2Fserverless-application/lists"}