• Stars
    star
    1,502
  • Rank 31,239 (Top 0.7 %)
  • Language
    TypeScript
  • Created over 9 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AvoRed an Open Source Laravel Shopping Cart

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/pickup

Set 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/graphiql

Once 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-dev

git 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/pickup

Now 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=secret

Now 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

More Repositories

1

framework

Core package for avored shopping cart
PHP
78
star
2

pms

Laravel based Project Management System
PHP
53
star
3

ecommerce

AvoRed E Commerce is an Laravel Open Source Shopping Cart
PHP
20
star
4

module-installer

AvoRed Composer Module Installer
PHP
13
star
5

restapi

AvoRed Shopping Cart REST API Package.
PHP
7
star
6

documentation

Documantation for AvoRed Laravel Ecommerce
6
star
7

octobercms-cart

Mage2 Cart plugin for October CMS
PHP
6
star
8

avored-components

AvoRed E commerce Vue and Tailwind CSS Components
Vue
4
star
9

cash-on-delivery

AvoRed E commerce Cash On Delivery Payment Module
PHP
4
star
10

graphql-admin

AvoRed E commerce GrahphQL Admin
Vue
4
star
11

graphql

AvoRed Shopping Cart GraphQL API Package.
PHP
3
star
12

go-ecommerce

AvoRed a beautiful Go e commerce
Go
3
star
13

dummy-data

AvoRed E commerce Dummy Data
PHP
3
star
14

material

Mage2 Material theme
HTML
2
star
15

promotion

AvoRed E commerce Promotion Module
PHP
2
star
16

fixed-rate

AvoRed E commerce Fixed Rate Shipping Module
PHP
2
star
17

avored-rust-cms

AvoRed rust cms
Rust
2
star
18

docker

AvoRed E commerce Docker
Dockerfile
2
star
19

install

AvoRed Installation Module
PHP
2
star
20

feature

AvoRed Feature Product Module
PHP
2
star
21

contact

AvoRed E commerce Contact Module
PHP
2
star
22

assets

AvoRed Assets Manager
PHP
1
star
23

subscribe

AvoRed E commerce Subscribe User Module
PHP
1
star
24

laravel-headless-avored-ecommerce

Laravel Headless AvoRed Ecommerce
1
star
25

related

AvoRed E commerce Related Product Module
PHP
1
star
26

heroproduct

AvoRed Hero Product Module
PHP
1
star
27

default

AvoRed Default Theme
HTML
1
star
28

banner

Banner Slider Module for AvoRed Laravel E commerce
PHP
1
star
29

review

AvoRed E commerce Product Review Module
PHP
1
star
30

task

AvoRed E commerce Task List Module
PHP
1
star
31

brand

AvoRed E commerce Product Brand Module
PHP
1
star
32

docker-dev

AvoRed e commerce development environment via docer
Dockerfile
1
star
33

pickup

AvoRed Ecommerce Pick up Module
PHP
1
star