sankalpsri / candy-api
API driven E-commerce solution, written in Laravel
Requires
- php: >=7.1.3
- alaouy/youtube: ^2.2
- barryvdh/laravel-cors: ^0.11
- barryvdh/laravel-dompdf: ^0.8.3
- braintree/braintree_php: 3.*
- doctrine/dbal: 2.9.2
- hashids/hashids: ^3.0
- intervention/image: ^2.4.2
- kalnoy/nestedset: ^4.3
- laravel/framework: 5.8.*
- laravel/passport: ^8.0
- laravel/tinker: ^1.0
- league/fractal: ^0.17.0
- maatwebsite/excel: 2.1.*
- paypal/rest-api-sdk-php: *
- ruflin/elastica: 6.1.*
- spatie/laravel-activitylog: 3.2.*
- spatie/laravel-permission: 2.29.*
- vimeo/laravel: 5.2.*
- vinkla/hashids: ^5.1.0
Requires (Dev)
- filp/whoops: ~2.0
- fzaninotto/faker: ~1.4
- mockery/mockery: ~1.0
- orchestra/testbench: ~3.6
- phpunit/phpunit: ~7.0
- dev-master
- 0.4.06
- 0.4.05.x-dev
- 0.4.01
- 0.4.00
- 0.3.x-dev
- 0.3.35
- 0.3.34
- 0.3.33
- 0.3.32
- 0.3.31
- 0.3.30
- 0.3.29
- 0.3.28
- 0.3.27
- 0.3.26
- 0.3.25
- 0.3.24
- 0.3.23
- 0.3.22
- 0.3.21
- 0.3.20
- 0.3.19
- 0.3.18
- 0.3.17
- 0.3.16
- 0.3.15
- 0.3.14
- 0.3.13
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.1
- 0.3.0
- 0.2.116
- 0.2.115
- 0.2.114
- 0.2.113
- 0.2.112
- 0.2.111
- 0.2.110
- 0.2.109
- 0.2.108
- 0.2.107
- 0.2.106
- 0.2.105
- 0.2.104
- 0.2.103
- 0.2.102
- 0.2.101
- 0.2.100
- 0.2.99
- 0.2.98
- 0.2.97
- 0.2.96
- 0.2.95
- 0.2.94
- 0.2.93
- 0.2.92
- 0.2.91
- 0.2.90
- 0.2.89
- 0.2.88
- 0.2.87
- 0.2.86
- 0.2.85
- 0.2.84
- 0.2.83
- 0.2.82
- 0.2.81
- 0.2.80
- 0.2.79
- 0.2.78
- 0.2.77
- 0.2.76
- 0.2.75
- 0.2.74
- 0.2.73
- 0.2.72
- 0.2.71
- 0.2.70
- 0.2.69
- 0.2.68
- 0.2.67
- 0.2.66
- 0.2.65
- 0.2.64
- 0.2.63
- 0.2.62
- 0.2.61
- 0.2.60
- 0.2.59
- 0.2.58
- 0.2.57
- 0.2.56
- 0.2.55
- 0.2.54
- 0.2.53
- 0.2.52
- 0.2.51
- 0.2.50
- 0.2.49
- 0.2.48
- 0.2.46
- 0.2.45
- 0.2.44
- 0.2.43
- 0.2.42
- v0.2.41
- 0.2.40
- 0.2.39
- 0.2.38
- 0.2.37
- 0.2.36
- 0.2.35
- 0.2.34
- 0.2.33
- 0.2.32
- 0.2.30
- 0.2.29
- 0.2.28
- v0.2.27
- v0.2.26
- v0.2.25
- v0.2.24
- v0.2.23
- v0.2.22
- v0.2.21
- v0.2.20
- v0.2.19
- v0.2.18
- v0.2.17
- v0.2.16
- v0.2.15
- v0.2.14
- v0.2.13
- v0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-sankalp
- dev-feature/GCA-28_assets_endpoint
- dev-feature/GCA-26_improve_unit_test_installer
- dev-release/0.9.0_beta
- dev-feature/GCA-30_attribute_groups_endpoint
- dev-analysis-8j0BJ2
- dev-feature/support_laravel_6
- dev-analysis-87pYek
- dev-feat/deferred-payments
- dev-feat/dont-delete-basket-lines-to-resync
This package is auto-updated.
Last update: 2024-11-10 06:02:34 UTC
README
Please Note
Whilst every effort has been made to make this software ready for a release, it is provided as is, this is very much still in early alpha stages and you use it at your own risk.
This is not production ready software
GetCandy E-Commerce API
A laravel way to build an API driven store online.
Requirements
- Laravel >= 5.5
- Elasticsearch >= 6
Server setup
We think the easiest way to get up and running is to use Valet+ with Elasticsearch. But really, it's up to you :)
Installing via composer
You can either install just the API or the API and Hub.
Just the API
This will contain everything you need to manage your store through the API endpoints.
composer require getcandy/candy-api
API and Hub (recommended)
This will install the API and the Hub, so you have a nice interface to manage your store.
composer require getcandy/candy-hub
Laravel 5.6
GetCandy supports package auto discovery
Laravel 5.5
Add the three required service providers to your config/app.php
file
'providers' => [ // ... GetCandy\Api\Providers\ApiServiceProvider::class, GetCandy\Api\Providers\EventServiceProvider::class, // If you have installed the hub, add this one GetCandy\Hub\Providers\HubServiceProvider::class ],
Publish the config / resources
The API needs to publish some config items and the hub needs to publish some resources (if you're using it)
php artisan vendor:publish --tag=config
// If using the hub
php artisan vendor:publish --tag=public
Set up your users
GetCandy doesn't have it's own User model, we figured you'd want your own, so we just use a trait:
use GetCandy\Api\Core\Traits\HasCandy; class User extends Authenticatable { use HasCandy;
The API uses passport for authentication, so make sure your config/auth.php
config uses this:
This will probably be refactored into it's own gate going forward, hangover from non package days...
'guards' => [ // ... 'api' => [ 'driver' => 'passport', 'provider' => 'users', ] ]
Get things up and running
The API needs some bare minimum data to get going, for now we've just made a console command to get going:
php artisan candy:install
Follow the installation steps and you'll be able to log in and start adding products!