Storing a large amount of information for product display

I want to make a page where it will show the product the company has to offer. Now, the problem is I don't know how to transfer for example the name of the product to one of the cards in the picture below. So what is the best way to do it? Especially if there is a lot of product to display.
7 Replies
William_O^2
William_O^23y ago
I think this depends on what the backend gives to you. If you do it in a framework(vue, react, etc), it's pretty easy. Use a for-loop method from the frame and fill the data into your cards. Maybe other people have a better way.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
IronWaffle
IronWaffleOP3y ago
Thanks for the different methods, but also I wanna ask how to store a bunch of text so that later on it can be displayed on each card. So lets just say the data is this, Product Name: Computer Key: 01 Description: Its a generic computer. If I have lets say 50 products like the above how would i store it so that i can fill the cards with the data needed. Does that make sense? sorry if its confusing
William_O^2
William_O^23y ago
This is what the backend gives you; typically, your will request JSON data from the backend. Then, you pick up the data from JSON to fill your card. You can store the JSON data as a variable in the memory via browser.
William_O^2
William_O^23y ago
Likes this. If you have 50 or more products, you will have product01 to product50+ in your JSON data
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
IronWaffle
IronWaffleOP3y ago
Ok I kinda understand both methods now, il try both methods and see which one I prefer most. Thanks for the answer :D
Want results from more Discord servers?
Add your server