Skip to content

💸 Rest-API service on Laravel using standard authorization and bearer-token authorization, standard CRUD for products and third-party add-ons such as: product filtering by options that can be added dynamically, admin panel using SleepingOwl, caching the list of all products in Redis, elasticsearch search by product name (clear and fuzzy), Rabbit…

Notifications You must be signed in to change notification settings

Vinniko/Laravel-Shop

Repository files navigation

Laravel Shop (Laravel PHP framework application using Elasticsearch and Redis)

Installation

Copy .env from .env.example file and then write your database config

cp .env.example .env

For example:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

Config Redis:

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

Config Elasticsearch:

ELASTICSEARCH_ENABLED=true
ELASTICSEARCH_HOSTS="localhost:9200"

Config RabbitMQ:

QUEUE_CONNECTION=rabbitmq
RABBITMQ_DSN=amqp://
RABBITMQ_HOST=127.0.0.1
RABBITMQ_USER=admin
RABBITMQ_PASSWORD=password
RABBITMQ_QUEUE=jobs

Run composer install

composer install

Run migrations and seeders

php artisan migrate --seed

Run elastic indexing

php artisan search:reindex

Run:

php artisan serve

Enter in browser:

localhost:8000

For starting queue of tasks:

php artisan queue:work

About

💸 Rest-API service on Laravel using standard authorization and bearer-token authorization, standard CRUD for products and third-party add-ons such as: product filtering by options that can be added dynamically, admin panel using SleepingOwl, caching the list of all products in Redis, elasticsearch search by product name (clear and fuzzy), Rabbit…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published