{"id":15047631,"url":"https://github.com/adityavk/amazon-locker-design","last_synced_at":"2026-02-05T08:02:33.628Z","repository":{"id":248937825,"uuid":"808768798","full_name":"adityavk/amazon-locker-design","owner":"adityavk","description":"Object oriented design for Amazon locker system problem","archived":false,"fork":false,"pushed_at":"2024-06-02T20:40:09.000Z","size":554,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T03:32:44.406Z","etag":null,"topics":["amazon-interview-practice","cpp17","object-oriented-design"],"latest_commit_sha":null,"homepage":"","language":"C++","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/adityavk.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}},"created_at":"2024-05-31T19:22:37.000Z","updated_at":"2024-07-17T21:02:47.000Z","dependencies_parsed_at":"2024-07-18T02:06:31.199Z","dependency_job_id":"a83a00f3-9188-4a93-9be9-7c8b8e1c715a","html_url":"https://github.com/adityavk/amazon-locker-design","commit_stats":null,"previous_names":["adityavk/amazon-locker-design"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adityavk/amazon-locker-design","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavk%2Famazon-locker-design","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavk%2Famazon-locker-design/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavk%2Famazon-locker-design/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavk%2Famazon-locker-design/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityavk","download_url":"https://codeload.github.com/adityavk/amazon-locker-design/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavk%2Famazon-locker-design/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29116450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"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":["amazon-interview-practice","cpp17","object-oriented-design"],"created_at":"2024-09-24T21:01:40.709Z","updated_at":"2026-02-05T08:02:33.606Z","avatar_url":"https://github.com/adityavk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLD: Amazon Locker System\n\nThis repository provides an object-oriented design for an Amazon Locker System implemented in C++. The system allows customers to securely store and retrieve their packages from self-service lockers. The implementation is not thread-safe and does not include any form of persistence, but the interfaces allow the system to be easily extended to support these features.\n\n## Class Diagram\n\n![Class Diagram](class_diagram.png)\n\nThe class diagram above represents the initial design of the system. Please note that it was somewhat modified during the implementation phase to better reflect the requirements of the system.\n\n## Functional Requirements\n\n- Customer searches for locker stations with given package size.\n\n- Customer chooses a given locker station. The system either assigns an available locker (of size category at least same as the package) for the time period (estimated delivery date + 3 days) or returns an error if a locker is unavailable.\n\n- Delivery agent finds the locker stations for a package id\n\n- Delivery agent delivers a package to the locker station. The system finds the reserved locker for that package id. Then it generates a unique 6 digit pin for that locker, and notifies the user about the delivery and the pin.\n\n- Customer pickup with provided code: open the locker with matching code, else return error.\n\n- Customer closes an open locker: system makes the locker available again and erases the pickup code.\n\n## Getting Started\n\nTo get started with the Amazon Locker System, follow these steps:\n\n1. Clone the repository: `git clone https://github.com/your-username/amazon-locker-system.git`\n2. Change directory: `cd amazon-locker-system`\n3. Build the project: `make all [DEBUG=1]`\n3. Run the program: `./locker_system`\n4. `main.cpp` contains the main function that demonstrates a sample run of the system, feel free to modify it to test different scenarios.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityavk%2Famazon-locker-design","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityavk%2Famazon-locker-design","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityavk%2Famazon-locker-design/lists"}