{"id":23084590,"url":"https://github.com/heincm/storefront","last_synced_at":"2026-05-01T08:31:53.874Z","repository":{"id":52029773,"uuid":"171069732","full_name":"heincm/storefront","owner":"heincm","description":"A CLI storefront application that can be used to purchase, restock, and add inventory to a SQL database","archived":false,"fork":false,"pushed_at":"2021-05-08T03:44:55.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-03T07:09:27.671Z","etag":null,"topics":["database","node","npmjs","sql"],"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/heincm.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}},"created_at":"2019-02-17T01:22:33.000Z","updated_at":"2019-07-17T22:21:49.000Z","dependencies_parsed_at":"2022-08-20T00:40:07.199Z","dependency_job_id":null,"html_url":"https://github.com/heincm/storefront","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heincm/storefront","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heincm%2Fstorefront","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heincm%2Fstorefront/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heincm%2Fstorefront/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heincm%2Fstorefront/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heincm","download_url":"https://codeload.github.com/heincm/storefront/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heincm%2Fstorefront/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32490810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["database","node","npmjs","sql"],"created_at":"2024-12-16T16:12:49.511Z","updated_at":"2026-05-01T08:31:53.858Z","avatar_url":"https://github.com/heincm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storefront\n\n\n\n### Customer View \n\nRunning this application will first ask a use what they would like to do. \n\nSelecting to view the items for sale will provide users a list of products they may purchase. From there, users will select the number of items they would like to purchase. Once the purchase is complete, the user will be shown a total cost and asked to either view the list again or exit. \n\nOnce the customer has placed the order, the application checks if the store has enough of the product to meet the customer's request.\n\nIf not, the app should logs the phrase `Insufficient quantity!`, and prevents the order from going through.\n\nIf the store _does_ have enough of the product, the reqeust is fulfilled. All purchases update the database for future purchases. \n\n\n\n### Manager View\n\nRunning this application will:\n\n  * List a set of menu options:\n\n    * View Products for Sale\n    \n    * View Low Inventory\n    \n    * Add to Inventory\n    \n    * Add New Product\n\n    * Exit\n\n  * If a manager selects `View Products for Sale`, the app lists every available item.\n\n  * If a manager selects `View Low Inventory`, then it lists all items with an inventory count lower than five.\n\n  * If a manager selects `Add to Inventory`, the app displays a prompt that will let the manager \"add more\" of any item currently in the store.\n\n  * If a manager selects `Add New Product`, it allows the manager to add a completely new product to the store.\n\n  * Selecting exit will exit the process.\n\n### Supervisor View\n\nRunning this app will provide the user with the following prompts: \n\n   * View Product Sales by Department\n\n   * Create New Department\n\n   * Exit\n\nWhen a supervisor selects `View Product Sales by Department`, the app displays a summarized table in their terminal/bash window. \n\nSelecting `Create New Department` will create an entirely new department in the database. \n\nSelecting `Exit` will exit the process. \n\n### See the app in action\nYou can see a video of the app in action [here](https://drive.google.com/file/d/1QBb4oLxEPZ4cPszPmb46h198Dy9-CY33/view)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheincm%2Fstorefront","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheincm%2Fstorefront","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheincm%2Fstorefront/lists"}