{"id":30269870,"url":"https://github.com/koachcode/mini-ecommerce-back-end-junior","last_synced_at":"2025-08-16T02:19:30.684Z","repository":{"id":61915680,"uuid":"556240549","full_name":"koachcode/Mini-ecommerce-Back-end-junior","owner":"koachcode","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-12T21:51:29.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T02:13:23.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"mini-ecommerce-back-end.vercel.app","language":"Python","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/koachcode.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":"2022-10-23T11:54:02.000Z","updated_at":"2023-04-11T16:18:56.000Z","dependencies_parsed_at":"2022-10-23T13:45:23.101Z","dependency_job_id":null,"html_url":"https://github.com/koachcode/Mini-ecommerce-Back-end-junior","commit_stats":null,"previous_names":["codewithmike01/mini-ecommerce-back-end-junior","koachcode/mini-ecommerce-back-end-junior"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koachcode/Mini-ecommerce-Back-end-junior","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koachcode%2FMini-ecommerce-Back-end-junior","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koachcode%2FMini-ecommerce-Back-end-junior/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koachcode%2FMini-ecommerce-Back-end-junior/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koachcode%2FMini-ecommerce-Back-end-junior/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koachcode","download_url":"https://codeload.github.com/koachcode/Mini-ecommerce-Back-end-junior/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koachcode%2FMini-ecommerce-Back-end-junior/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270657715,"owners_count":24623465,"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-08-16T02:00:11.002Z","response_time":91,"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-08-16T02:19:30.115Z","updated_at":"2025-08-16T02:19:30.668Z","avatar_url":"https://github.com/koachcode.png","language":"Python","readme":"# Mini E-commerce Flask API\n\nThis is a mini ecommerce website, to perform CRUD operations on products. The Flask app that will be used for this project consists of a simple API with three endpoints:\n\n- `GET '/products'`: This gets all products.\n- `POST '/products'`: This post a new product .\n- `DELETE '/products'`: This sends an array with ids of products to be deleted\n\n## Front-end repo\n\n```bash\n  git clone https://github.com/Ginohmk/Sandiweb-Accessment-Front-end-junior.git\n```\n\n## Prerequisites\n\n- Python version between 3.7 and 3.9. Check the current version using:\n\n```bash\n#  Mac/Linux/Windows\npython --version\n```\n\nYou can download a specific release version from \u003ca href=\"https://www.python.org/downloads/\" target=\"_blank\"\u003ehere\u003c/a\u003e.\n\n- Python package manager - PIP 19.x or higher. PIP is already installed in Python 3 \u003e=3.4 downloaded from python.org . However, you can upgrade to a specific version, say 20.2.3, using the command:\n\n```bash\n#  Mac/Linux/Windows Check the current version\npip --version\n# Mac/Linux\npip install --upgrade pip==20.2.3\n# Windows\npython -m pip install --upgrade pip==20.2.3\n```\n\n- Terminal\n  - Mac/Linux users can use the default terminal.\n\n```bash\npip install -r requirements.txt\n```\n\n## Initial setup\n\n1. Locally clone your forked version to begin working on the project.\n\n```bash\ngit clone https://github.com/Ginohmk/Sandiweb-Accessment-Back-end-junior.git\ncd Sandiweb-Accessment-Back-end-junior/\n```\n\n1. These are the files relevant for the current project:\n\n```bash\n.\n├── src\n  ├── database\n    ├── models.py\n  ├── migration\n  ├── app.py\n  ├── test_app.py\n├── README.md\n├── requirements.txt\n\n```\n\n## End Ponits\n\n- `POST '/products'`\n\n  - Request\n\n  ```json\n  {\n    \"sku\": \"hmmm656\",\n    \"name\": \"shelom Homes\",\n    \"measure\": 60,\n    \"price\": 800,\n    \"category_id\": 3\n  }\n  ```\n\n  - Response\n\n  ```json\n  {\n    \"product_length\": 3,\n    \"products\": [\n      {\n        \"category_id\": 3,\n        \"id\": 11,\n        \"measure\": \"60\",\n        \"name\": \"shelom Homes\",\n        \"sku\": \"MKMKMK2\"\n      },\n      {\n        \"category_id\": 3,\n        \"id\": 13,\n        \"measure\": \"60\",\n        \"name\": \"shelom Homes\",\n        \"sku\": \"hjh\"\n      },\n      {\n        \"category_id\": 3,\n        \"id\": 14,\n        \"measure\": \"60\",\n        \"name\": \"shelom Homes\",\n        \"sku\": \"hmmm656\"\n      }\n    ],\n    \"success\": true\n  }\n  ```\n\n- `DELETE '/products'` : Passing the ids to be delted in a list\n\n  - Request\n\n  ```json\n  {\n    \"list\": [11, 13]\n  }\n  ```\n\n  - Response\n\n  ```json\n  {\n    \"product\": [\n      {\n        \"category_id\": 3,\n        \"id\": 14,\n        \"measure\": \"60\",\n        \"name\": \"shelom Homes\",\n        \"sku\": \"hmmm656\"\n      }\n    ],\n    \"product_length\": 1,\n    \"success\": true\n  }\n  ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoachcode%2Fmini-ecommerce-back-end-junior","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoachcode%2Fmini-ecommerce-back-end-junior","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoachcode%2Fmini-ecommerce-back-end-junior/lists"}