Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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://github.com/bagisto/headless-ecommerce
bagisto cart ecommerce graphql graphql-api headless headless-commerce jwt laravel opensource php
Last synced: 28 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/bagisto/headless-ecommerce
- Owner: bagisto
- License: mit
- Created: 2021-02-18T05:55:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-24T08:07:40.000Z (about 2 months ago)
- Last Synced: 2024-09-28T21:23:40.603Z (about 1 month ago)
- Topics: bagisto, cart, ecommerce, graphql, graphql-api, headless, headless-commerce, jwt, laravel, opensource, php
- Language: PHP
- Homepage: https://bagisto.com/en/headless-ecommerce/
- Size: 1.97 MB
- Stars: 72
- Watchers: 5
- Forks: 44
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Bagisto GraphQL API
Bagisto's GraphQL API enables a seamless, headless eCommerce experience built on Laravel. This API delivers ultra-fast, dynamic, and personalized shopping experiences through a scalable, open-source platform.
**Read our full documentation: [Bagisto GraphQL API Docs](https://devdocs.bagisto.com/1.x/graphql-admin-api/)**
This API was developed in collaboration with the Ucraft Team.
---
### Requirements:
- **Bagisto**: v2.2.2 or higher
---
### Installation:
To install the Bagisto GraphQL API, follow these steps:
1. **Install via Composer**
Run the following command in your terminal to install the GraphQL API package:
```bash
composer require bagisto/graphql-api dev-main
```2. **Update Middleware Configuration**
In the `app/Http/Kernel.php` file, move the following middleware from the `web` section in the `middlewareGroups` array to the global `middleware` array:
```php
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
```3. **Update Environment Settings**
Add the following entries to your `.env` file to configure JWT settings:
```env
JWT_TTL=525600
JWT_SHOW_BLACKLIST_EXCEPTION=true
```4. **Publish Assets and Configurations**
Run the command below to publish assets and configurations for Bagisto GraphQL:
```bash
php artisan bagisto-graphql:install
```---
### Usage:
1. **GraphQL Playground**
After installation, you can test your API through the GraphQL Playground. Visit:
```
http://your-domain.com/graphiql
```2. **Postman Integration**
Alternatively, you can test the API using Postman by accessing:
```
http://your-domain.com/graphql
```---
That's it! Your Bagisto GraphQL API is now ready. Execute the project on your specified domain and start building your headless eCommerce solution.