https://github.com/vinniko/laravel-shop
:money_with_wings: 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), RabbitMQ queue for reindex command.
https://github.com/vinniko/laravel-shop
bearer-tokens elasticsearch filter laravel mysql php rabbitmq redis rest-api search sleepingowl
Last synced: about 1 month ago
JSON representation
:money_with_wings: 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), RabbitMQ queue for reindex command.
- Host: GitHub
- URL: https://github.com/vinniko/laravel-shop
- Owner: Vinniko
- Created: 2021-06-19T11:01:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-30T06:47:12.000Z (about 4 years ago)
- Last Synced: 2025-01-22T08:43:49.815Z (9 months ago)
- Topics: bearer-tokens, elasticsearch, filter, laravel, mysql, php, rabbitmq, redis, rest-api, search, sleepingowl
- Language: PHP
- Homepage:
- Size: 3.7 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Laravel Shop (Laravel PHP framework application using Elasticsearch and Redis)
## Installation
Copy .env from .env.example file and then write your database config
```bash
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```bash
composer install
```Run migrations and seeders
```bash
php artisan migrate --seed
```Run elastic indexing
```bash
php artisan search:reindex
```Run:
```bash
php artisan serve
```
Enter in browser:```bash
localhost:8000
```For starting queue of tasks:
```
php artisan queue:work
```