DanielsHaitovs / MakeEasyCommerce

0 stars 0 forks source link

Investigate EAV Approach for Entities, Admin Settings, (Front End?) #16

Open DanielsHaitovs opened 1 year ago

DanielsHaitovs commented 1 year ago

The idea of EAV is to be a tree (reminds me something of category tree) where will be stored setting according to tree level.

Realize simple table relationship for now. With option to store ->

Attribute id, Attribute code, Attribute (group-level) settings, Attribute value

For now, the idea is to hold and render them in elastic.

means admin should have in menu buttons such as ->

Category ->

  1. Products -> Layer settings (FE, like PLP, PDP, HP, etc.)
  2. Products -> Configuration (attributes: size, color, etc.)
  3. Products -> Synchronization (Other platforms like Amazon, Kongo, Farfetch, Facebook Marketplace, etc.)
  4. Products -> Promo (Marketing)

Product ->

  1. Product -> Promo (Marketing)
  2. Product -> Layer settings (FE, like PLP or PDP, HP, etc.)
  3. Product -> Configuration

Basket ->

  1. Basket -> Promo Rules (Marketing)
  2. Basket -> Layer settings (FE, like PLP or PDP, HP, etc.)
  3. Basket -> Configuration
  4. Basket -> Synchronization ->!!! No clue, but I assume might become handy to have smth out of the box to support other platforms if they are represented as SPA (Single Page Application) and don't want to waste time and money on complex development.
  5. Basket - Api (for future)

Order ->

  1. Order -> Layer settings (FE, like fast checkout (PLP, HP) and checkout etc.)
  2. Order -> Configuration
  3. Order -> Checkout
  4. Order -> Shipping
  5. Order -> Payment
  6. Order -> Return & Refund
  7. Order -> Invoice
  8. Order -> Api (for future)
  9. Order -> Production

Customer ->

  1. Regular Customer settings, they all the same + (GDPR)
  2. Customer -> Login
  3. Customer -> Portfolio/Album
  4. Customer -> Business settings

Content ->

  1. Content -> Pages
  2. Content -> Blocks
  3. Content -> Configuration
  4. Content-> Layer settings (FE, like PLP, HP, etc.)

Topic like SEO, Meta, Analytics will be reviewed when main flow for BE (code) will be ready (Elastic, Varnish, Redis, NestJS)

DanielsHaitovs commented 1 year ago

https://wanago.io/2020/09/07/api-nestjs-elasticsearch/