{"id":13545748,"url":"https://github.com/avored/laravel-ecommerce","last_synced_at":"2025-05-14T12:11:08.038Z","repository":{"id":41329765,"uuid":"40945715","full_name":"avored/laravel-ecommerce","owner":"avored","description":"AvoRed an Open Source Laravel Shopping Cart","archived":false,"fork":false,"pushed_at":"2023-11-30T23:15:30.000Z","size":117528,"stargazers_count":1514,"open_issues_count":59,"forks_count":549,"subscribers_count":105,"default_branch":"main","last_synced_at":"2024-10-29T15:27:12.138Z","etag":null,"topics":["address-book","cart","commerce","ecommerce","ecommerce-platform","hacktoberfest","laravel","laravel-ecommerce","laravel5-ecommerce","open-source","order","order-management","order-return","php","shopping","shopping-cart","shopping-cart-solution","shopping-manager","user-management"],"latest_commit_sha":null,"homepage":"https://avored.com","language":"TypeScript","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/avored.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"RoadMap.md","authors":null},"funding":{"open_collective":"laravel-ecommerce"}},"created_at":"2015-08-18T02:17:28.000Z","updated_at":"2024-10-29T08:12:09.000Z","dependencies_parsed_at":"2023-12-28T13:13:36.040Z","dependency_job_id":null,"html_url":"https://github.com/avored/laravel-ecommerce","commit_stats":{"total_commits":2026,"total_committers":44,"mean_commits":46.04545454545455,"dds":"0.11253701875616984","last_synced_commit":"9e58310553e15273a433c80f96ee1264978593f8"},"previous_names":[],"tags_count":88,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avored%2Flaravel-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avored%2Flaravel-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avored%2Flaravel-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avored%2Flaravel-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avored","download_url":"https://codeload.github.com/avored/laravel-ecommerce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333991,"owners_count":21086296,"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":["address-book","cart","commerce","ecommerce","ecommerce-platform","hacktoberfest","laravel","laravel-ecommerce","laravel5-ecommerce","open-source","order","order-management","order-return","php","shopping","shopping-cart","shopping-cart-solution","shopping-manager","user-management"],"created_at":"2024-08-01T11:01:13.664Z","updated_at":"2025-04-11T04:59:35.059Z","avatar_url":"https://github.com/avored.png","language":"TypeScript","funding_links":["https://opencollective.com/laravel-ecommerce"],"categories":["TypeScript","Packages"],"sub_categories":["E-commerce"],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://avored.com\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/avored/framework/main/logo.svg\" width=\"400\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n# AvoRed an laravel headless e commerce \n\nA  headless e commerce GraphQL API which uses Laravel as a backend.\n\n## Installation \n\n##### Backend APP setup \n\nFirst thing first we will install laravel backend api service. First thing first we will install the laravel app. \n\n    composer create-project laravel/laravel avored-backend\n    cd avored-backend\n    composer require avored/framework\n    composer require avored/dummy-data\n    composer require avored/cash-on-delivery\n    composer require avored/pickup\n\nSet up your .env values and CORS\n\nTo fixed the CORS in your laravel8 app. You can open `config/cors.php` and replace the code like below in the file.\n\n    'allowed_origins' =\u003e ['http://localhost:8080'],\n\n\nOnce the .env setup is done then we can install the AvoRed E commerce\n\n    php artisan avored:install\n    php artisan vendor:publish --provider=\"AvoRed\\Framework\\AvoRedServiceProvider\"\n    yoursite.com/graphiql\n\nOnce the avored/framework has been installed after that we will make sure we setup the CORS to allow access of an graphql api via any frontend.\n\n##### Frontend APP Setup\n\n    git clone https://github.com/avored/laravel-ecommerce avored-frontend\n    cd avored-frontend\n    npm install\n    npm run serve\n\n\n#### Installation via Docker\n\nExecute the below command:\n\n    git clone https://github.com/avored/docker-dev.git\n    cd docker-dev\n\n    git clone https://github.com/avored/laravel-ecommerce ./src/frontend\n    docker-compose up -d\n    docker-compose run --rm composer create-project laravel/laravel:8.6 ./\n    docker-compose run --rm composer require avored/framework\n    docker-compose run --rm composer require avored/dummy-data avored/cash-on-delivery avored/pickup\n\nNow setup `.env` file. Open a avored app .env file which is located at `./src/backend/.env` then setup your database and any other env as per your docker-compose.yml file\n\n    DB_HOST=mysql\n    DB_DATABASE=homestead\n    DB_USERNAME=homestead\n    DB_PASSWORD=secret\n\nNow we just have to install the AvoRed and create an avored admin user account\n\n    docker-compose run --rm artisan avored:install\n    docker-compose run --rm artisan vendor:publish --provider=\"AvoRed\\Framework\\AvoRedServiceProvider\"\n\nNow we need to setup CORS so frontend application can receive api call from backnd.\nOpen `./src/backend/config/cors.php` then replace the below line\n\n        'paths' =\u003e ['/graphql', 'sanctum/csrf-cookie'],\n        'allowed_origins' =\u003e ['http://localhost:8060'],\n\nThat's It. Now you can visit `http://localhost:8060` for frontend and for backend you can visit `http://localhost:8050/admin`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favored%2Flaravel-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favored%2Flaravel-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favored%2Flaravel-ecommerce/lists"}