/ecommerce-livewire

Laravel project to test Laravel Livewire 3 features

Primary LanguagePHP

Ecommerce Livewire


Ecommerce Livewire is a practice using Laravel 10 join to Livewire in their V3. The main idea is a list of products with differents filters using Livewire, PHP Enums, PHP match and Laravel Pipelines.

Mixing all this can do use of the strategy pattern join to the factory pattern to handle all the filters having the logic of each filter in dedicated classes, allowing to scale the project easing being able to add new filter classes.

Instructions

To install the project just is necessary follow these steps:

  1. Clone the repo
  2. copy the .env.example to a .env file
  3. Add your database credentials inside the .env file
  4. Run the migrations and seeders with the command php artisan migrate:fresh --seed

And you are done!