justinarat / Teamify

0 stars 0 forks source link

Render the lobby cards for lobby searching #35

Closed justinarat closed 4 months ago

justinarat commented 5 months ago

This issue uses #37, so wait until that is merged into main before merging this issue

Need to implement dynamic rendering of lobby cards in the lobby searching page so that if the user scrolls down, more lobby cards are rendered.

Might be best to render this in the client-side and use ajax requests to get chunks (maybe 12) lobby cards at a time.

In the server-side, need to implement a new endpoint for getting either a fixed or variable number of lobbies (data of each lobby), maybe "/get-lobby-data?count=". Could have more parameters in the query string as well, this could be used to determine which tags to request

On a request to this endpoint, the server queries the database and sends data in json to the client. Will need to decide on the json format, but it will likely be similar to the sqlalchemy model of a the lobby table.

TODO: