hparcells / rising-swag

🐺 Curated list of merch and swag from Pierce Brown's Red Rising saga.
https://risingswag.com
GNU General Public License v3.0
1 stars 0 forks source link

Use a Database to Store Items #6

Closed hparcells closed 1 year ago

hparcells commented 1 year ago

Currently, all the items are stored as objects included in the bundle. This means that the website generated can be statically hosted, as it is now, on Netlify. At the time of writing this, the project contains around 200 items, and there are some concerning performance issues when filtering results. The webpage is also super long, making it hard for a user to reach the bottom of the page to view more information or a footer (if it existed in the first place).

Instead, a database should be used to store all the items. This means that authentication and a way to add items to the site easily need to be implemented. To solve the length issue, the page should be limited to showing a certain amount of items (50?), and if it exceeds that amount, pagination should be used. Optionally, API endpoints should be set up for further functionality, if this is done, API documentation should be written.

hparcells commented 1 year ago

See also: #7

hparcells commented 1 year ago

This issue has sort of been solved with the implementation of #7 (pagination), so this will be closed for now, until the need for a database arises again.