Closed HeriYantodotDev closed 1 year ago
It's a hasle to add more data like createdAt , updatedAt, and active for this mocking data. so I decided to remove it. so the structure looks like this :
Collection: categories
data: example: hats , jackets , mens , sneakers , womens |
Field | Type | Default Value (in Function) |
---|---|---|---|
title | string | example: hats , jackets |
|
items | {} | below |
item object: |
Field | Type | Default Value (in Function) |
---|---|---|---|
id | number | ||
imageUrl | string | ||
name | string | ||
price | string | ||
stock | number |
name:[Feature] Firebase Database for Products List about: Setting up the database for the product list
Feature Description
Shop
pageUse Case
Using data from the database instead of hardcoding the data in the front end.
Proposed Solution
ProductContext
a little bit.Database schema:
Collection:
categories
hats
,jackets
,mens
,sneakers
,womens
hats
,jackets
item
object:Alternatives Considered
Additional Information