Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avored/laravel-ecommerce
AvoRed an Open Source Laravel Shopping Cart
https://github.com/avored/laravel-ecommerce
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
Last synced: 29 days ago
JSON representation
AvoRed an Open Source Laravel Shopping Cart
- Host: GitHub
- URL: https://github.com/avored/laravel-ecommerce
- Owner: avored
- Created: 2015-08-18T02:17:28.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T23:15:30.000Z (12 months ago)
- Last Synced: 2024-04-14T09:12:06.082Z (7 months ago)
- 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
- Language: TypeScript
- Homepage: https://avored.com
- Size: 112 MB
- Stars: 1,488
- Watchers: 106
- Forks: 540
- Open Issues: 61
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- Roadmap: RoadMap.md
Awesome Lists containing this project
README
# AvoRed an laravel headless e commerce
A headless e commerce GraphQL API which uses Laravel as a backend.
## Installation
##### Backend APP setup
First thing first we will install laravel backend api service. First thing first we will install the laravel app.
composer create-project laravel/laravel avored-backend
cd avored-backend
composer require avored/framework
composer require avored/dummy-data
composer require avored/cash-on-delivery
composer require avored/pickupSet up your .env values and CORS
To fixed the CORS in your laravel8 app. You can open `config/cors.php` and replace the code like below in the file.
'allowed_origins' => ['http://localhost:8080'],
Once the .env setup is done then we can install the AvoRed E commerce
php artisan avored:install
php artisan vendor:publish --provider="AvoRed\Framework\AvoRedServiceProvider"
yoursite.com/graphiqlOnce 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.
##### Frontend APP Setup
git clone https://github.com/avored/laravel-ecommerce avored-frontend
cd avored-frontend
npm install
npm run serve#### Installation via Docker
Execute the below command:
git clone https://github.com/avored/docker-dev.git
cd docker-devgit clone https://github.com/avored/laravel-ecommerce ./src/frontend
docker-compose up -d
docker-compose run --rm composer create-project laravel/laravel:8.6 ./
docker-compose run --rm composer require avored/framework
docker-compose run --rm composer require avored/dummy-data avored/cash-on-delivery avored/pickupNow 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
DB_HOST=mysql
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secretNow we just have to install the AvoRed and create an avored admin user account
docker-compose run --rm artisan avored:install
docker-compose run --rm artisan vendor:publish --provider="AvoRed\Framework\AvoRedServiceProvider"Now we need to setup CORS so frontend application can receive api call from backnd.
Open `./src/backend/config/cors.php` then replace the below line'paths' => ['/graphql', 'sanctum/csrf-cookie'],
'allowed_origins' => ['http://localhost:8060'],That's It. Now you can visit `http://localhost:8060` for frontend and for backend you can visit `http://localhost:8050/admin`