Triumfator's avatar

Vue implementation advice

I'm building an e-commerce project in Laravel 5.8 and I was wondering if Vue will be suitable to build a single page that handles customer orders.

There will be several tables.

ORDERS: containing customer user id, shipping address, and total of all ordered products. ORDERITEMS: containing order id, item id, quantity, and price for items that belong to a particular order. TRACKING: containing order id, shipping company name, tracking number, and cost of shipping. Some orders might contain multiple tracking numbers, to handle multiple box shipments.

Obviously there will be Order Controller, and I suppose 2 other controllers to add & delete order items and tracking info.

Would I be able to do this all with Vue without reloading the page? My previous version of the same e-commerce project was done way back in 2009 in Yii 1.1 framework and it used jQuery AJAX to do this kind of thing, but i realize that it's outdated technology.

0 likes
3 replies
devfrey's avatar

Vue is very suitable for building single-page applications.

Robstar's avatar

Yep, Vue and Laravel (assume you'd be using that for backend API) would be fine. If you have lot's of state I'd recommend Vuex.

Triumfator's avatar

Thank you for your replies.. i'll give Vue a try.

Please or to participate in this conversation.