{"id":24877602,"url":"https://github.com/rakibhasansabbir/laravel-ecommerce-api","last_synced_at":"2025-10-15T21:30:27.622Z","repository":{"id":37581654,"uuid":"153678099","full_name":"rakibhasansabbir/Laravel-Ecommerce-API","owner":"rakibhasansabbir","description":"Lite E-Commerce API ","archived":false,"fork":false,"pushed_at":"2023-10-25T11:43:28.000Z","size":931,"stargazers_count":44,"open_issues_count":4,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-10-25T12:58:35.998Z","etag":null,"topics":["ecommerce-api","eloquent-models","factory","laravel","mysql","passport","resource","rest-api"],"latest_commit_sha":null,"homepage":"https://laraeapi.herokuapp.com","language":"PHP","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/rakibhasansabbir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-10-18T19:39:40.000Z","updated_at":"2023-10-01T18:00:35.000Z","dependencies_parsed_at":"2022-09-08T21:02:00.237Z","dependency_job_id":"9dc81985-9221-4ebf-820e-78bf6a4b3ebf","html_url":"https://github.com/rakibhasansabbir/Laravel-Ecommerce-API","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhasansabbir%2FLaravel-Ecommerce-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhasansabbir%2FLaravel-Ecommerce-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhasansabbir%2FLaravel-Ecommerce-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhasansabbir%2FLaravel-Ecommerce-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakibhasansabbir","download_url":"https://codeload.github.com/rakibhasansabbir/Laravel-Ecommerce-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236640578,"owners_count":19181746,"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":["ecommerce-api","eloquent-models","factory","laravel","mysql","passport","resource","rest-api"],"created_at":"2025-02-01T09:17:57.210Z","updated_at":"2025-10-15T21:30:22.136Z","avatar_url":"https://github.com/rakibhasansabbir.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel-Ecommerce-API\nSimple and robust e-commerce API to assist those who are just getting started.\n\n\n## Getting Started\n\nfor test These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Prerequisites\n\nWhat things you need to install the software and how to install them\n\n```\nLaravel\nPHP 8.1+\nmysql\n\n```\n\n### Installing\n\nA step by step series of examples that tell you how to get a development env running\n\nExecute one by one\n\n```\n-\u003e cp .env.example .env\n-\u003e composer install\n-\u003e php artisan key:generate \n\ncreate folder under public/storage/images\n\n-\u003e php artisan migrate:fresh --seed\n-\u003e php artisan passport:install\n\n-\u003e php artisan serve\n```\n\nAnd repeat\n\n```\nuntil finished\n```\n\nEnd with an example of getting some data out of the system or using it for a little demo\n\n## Running the tests\n\nI am using Postman u can use anyone like insomnia\n\n### create user token for create update and delete operation\n\n-\u003e (POST)localhost:8000/oauth/token\n\nHeaders\n```\nAccept : application/json\nContent-Type : application/json\n```\n\nBody(put your details [Nb: password allows be 'secret' if you are using seed command] )\n```\n{\n\t\"grant_type\" : \"password\",\n\t\"client_id\" : \"2\",\n\t\"client_secret\" : \"xZNRgxf0f6xFmS8CLxcxkioL7Yhgj9eKOhFxIhkj\",\n\t\"username\" : \"lkertzmann@example.org\",\n\t\"password\" : \"secret\"\n}\n```\n\n## Break down into end to end tests\n\nFlow below instraction for test your API \n\n### Get all products\n```\n(GET) http://localhost:8000/api/products\n```\n\n### Get single products\n```\n(GET) http://localhost:8000/api/products/1\n```\n\n### Create products\n```\n(POST) http://localhost:8000/api/products\n\nHeaders\nAccept : application/json\nContent-Type : application/json\nAuthorization : \"put your user secret\"\n\nBody(put your details)\n\n{\n\t\"name\" : \"Iphone X\",\n\t\"description\" : \"Super Retina in two sizes — including the largest display ever on an iPhone. Even faster Face ID. The smartest, most powerful chip in a smartphone. And a breakthrough dual-camera system. iPhone XS is everything you love about iPhone. Taken to the extreme.\",\n\t\"price\" : 10000,\n\t\"stock\" : 10,\n\t\"discount\" : 15\n}\n```\n\n### Update product \n```\nsame as create only change request post to put\n```\n\n### Delete product\n```\n(DELETE) http://localhost:8000/api/products/2\nalso need some headers as like as product create \n```\n\n### Get all reviews in particular product\n```\n(GET) http://localhost:8000/api/products/1/reviews\n```\n\n### Create review\n```\n(POST) http://localhost:8000/api/products/1/reviews\n\nBody(put your details)\n{\n\t\"customer\": \"Rakib Hasan Sabbir\",\n    \"review\" : \"Quo sapiente quos suscipit. Dolor et sit architecto deserunt sunt.\",\n    \"star\" : 5\n}\n```\n\n### Delete review\n```\n(DELETE) http://localhost:8000/api/products/1/reviews/501\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakibhasansabbir%2Flaravel-ecommerce-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakibhasansabbir%2Flaravel-ecommerce-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakibhasansabbir%2Flaravel-ecommerce-api/lists"}