vanilophp / framework

The truly Laravel E-commerce Framework
https://vanilo.io
MIT License
818 stars 102 forks source link

VueJs Frontend Category Grid #66

Closed jonathan-martz closed 4 years ago

jonathan-martz commented 4 years ago

I wrote a small composer module to implement a category grid with vuejs.

Adds vuejs to the frontend (as start for vanillo). Adds category grid with placeholder data.

https://github.com/jonathan-martz/vanillo-vue

What do you think, is it okay for you or do you have any feedback on this ?

fulopattila122 commented 4 years ago

Hi Johnathan,

nice idea! Thanks for pinging me. My only concern is that Vanilo is written with a single L and not double 🙂

How do you plan to get categories data into the app?

jonathan-martz commented 4 years ago

https://laravel.com/docs/master/controllers

Laravel Controller with Json response.

Then i can fetch it and parse the data to the component.

Category@view to get a single category with ids for child categories

Category@collection category collection to filter

Product@view single product with data

Product@collection product collection with a list of products filtered

The Grid should fetch category view. The Category grid shoudl fetch product collection with category id. The Product Card should fetch the product view with product id. Thats the plan, how it works we will see.

With http2 and visible and online check it should work fine.

fulopattila122 commented 4 years ago

Cool. Let me know if there will be a demo available 👍