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:
[ ] Write javascript for lobby searching that requests and renders the lobby data as cards
[ ] Figure out parameters of the query string
[ ] Figure out format of the json in the response (structure will likely be similar to the database models)
[ ] In Flask, write the view function for the endpoint, probably in a different file from routes.py (routes.py can have routes to pages whereas the other py file can have endpoints for getting data)
This issue uses #37, so wait until that is merged into
main
before merging this issueNeed 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: