gamebox-dev / gamebox-api

API for managing a game collection
GNU Affero General Public License v3.0
0 stars 2 forks source link

Store games locally when fetching from IGDB #14

Open michaelenger opened 2 days ago

michaelenger commented 2 days ago

The idea is to store all the games which come from IGDB when searching into the database and then returning "our" games as the search result. We need to check the database (using the external ID) for if the games already exist and only fetching the metadata from the games which we need to fill in.

Screenshot 2024-11-19 at 17 21 26

Note that this also includes getting the platform information and storing that in its respective database table as well. For simplicity's sake let's just store the game ID and platform ID as the ones we get directly from IGDB.