fahaddsheikh's avatar

MultiSeller E-com on Lumen?

Hello People,

I know Laravel quite well but I haven't really explored lumen. Right now I have a project in hand to build an API based e-commerce just like Alibaba. It has three basic components: Seller, Customer, and Core.

Core is API based engine that will primarily contain products, orders, customers, carts and all the logic around it. It will serve to both seller and customer front.

Seller engine is primarily for the seller front. A seller is someone that will be selling their own products on the website. They will have a panel to control products and manage orders and customers.

Customer front-end is react based and will primarily interact with the core for data through the API

Now what I need to know from you pros is, which stack should I go for:

Option 1:

  • Core: Lumen
  • Customer Front: React
  • Seller Front: Laravel

Option 2:

  • Core/Seller Front: Laravel (1 Installation)
  • Customer Front: React

Option 3:

  • Core: Laravel
  • Customer Front: React
  • Seller Front: Laravel (2 separate Laravel installations for core and seller)

This is a very important question we need to answer now so we don't regret the decision later. Please Help!!!

0 likes
2 replies
bobbybouwmann's avatar

Well, I can't 100% answer the question for you because I don't know all the functionalities. It depends on a lot of factors. Do you work with different teams on the Core and the Seller Front? Do the Core and the Seller Front have a. lot of data in common?

In general, I would probably try to keep everything as simple as possible. That means everything in one application.

If you already know it's going to be a very big website, it might be better to split the core and the seller front. You can however, keep using the same database. You can then, for example, build a package that shares the models or you just implement them per application.

Like I said before, it's hard to answer your question without all the information

fahaddsheikh's avatar

Hey Bobby.

Thank you for your answer.

Just think its something very similar to Alibaba or Amazon but on a smaller scale. There are two teams right now one for the web and one for mobile. So to answer your question only one team on the web application.

I'm sorry I forgot to mention this but I should have. We plan to keep only one database and that will be with the core. Seller engine and Customer front will only be talking to the core through API's to push or pull data.

Our primary concern to consider lumen for the core was since it was said to be lighting fast if we split the seller front to a separate installation our core API would be much faster.

Option 2 seems to be the most popular amongst us right now.

Please or to participate in this conversation.