FREDERIC LD's avatar

How to setup my project

Hi,

I have started working on an e-commerce site and the client has now changed the spec. He wants to be able to duplicate the site and change what the site sells. This site is going to sell only car parts. He want the next site to sell only bike parts. And the next one computer parts, ...

Everything is going to be the same in terms of website management, customer management, ..., but some aspect of the site will be different as car parts and bike parts will hold different information.

I am unsure as to how I should organise the project. I started my project in a single Github repo but I need more now. My thinking would be to have a central repository where I change things that are common to all sites and then have a car repository , a bike repository that feed from the central repository somehow. Can repository behave like branch?

Could anyone suggest something?

0 likes
1 reply
mabdullahsari's avatar

You're describing a very generic e-commerce project. I honestly have no clue why your client has not gone for a solution such as Shopify.

If you're going to be incorporating re-use, then you have to decouple your thinking from the concretions and instead focus on abstractions.

This means that you need a Product model, which can belong to multiple Category models, which also has multiple Attributes, historical Prices etc.

You should probably take a look at an e-commerce course to have a better understanding of the field.

Please or to participate in this conversation.