bagisto / headless-ecommerce

Laravel Headless eCommerce APIs allow you to experience seamless and easily scalable storefront performance. An open-source and GraphQL based Rest API Laravel platform delivering ultra-fast, dynamic, and personalized shopping experiences.
https://bagisto.com/en/headless-ecommerce/
MIT License
67 stars 40 forks source link
bagisto cart ecommerce graphql graphql-api headless headless-commerce jwt laravel opensource php

Bagisto GraphQL API

Latest Stable Version Total Downloads License

Laravel eCommerce headless APIs allow you to experience seamless and easily scalable storefront performance. The open-source headless laravel platform built on GraphQL based Rest API delivers ultra-fast, dynamic, and personalized shopping experiences.

Read our documentation: Bagisto GraphQL API Docs

The Bagisto GraphQL API is made in collaboration with Ucraft Team

1. Requirements:

2. Installation:

To clone Bagisto GraphQL run the below command from terminal:

composer require bagisto/graphql-api dev-main
\Webkul\GraphQLAPI\Providers\ModuleServiceProvider::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
    'api' => [
            'driver'   => 'jwt',
            'provider' => 'customer',
        ],

   'admin-api' => [
            'driver'   => 'jwt',
            'provider' => 'admin',
        ],
    'customer' => [
            'driver' => 'eloquent',
            'model'  => Webkul\GraphQLAPI\Models\Customer\Customer::class,
        ],

    'admin' => [
            'driver' => 'eloquent',
            'model'  =>  Webkul\GraphQLAPI\Models\Admin\Admin::class,
        ],
JWT_TTL=525600
JWT_SHOW_BLACKLIST_EXCEPTION=true

To install and publish the assests and configurations, run below command from the root in terminal:

php artisan bagisto-graphql:install
http://your-domain.com/graphiql
http://your-domain.com/graphql

That's it, now just execute the project on your specified domain.