techstartucalgary / tsu-website

The official repository for Tech Start UCalgary's website
https://techstartucalgary.com
MIT License
7 stars 7 forks source link

Fetching images from our google photos library for our gallery page #422

Closed Niyousha99 closed 7 months ago

Niyousha99 commented 1 year ago

Right now we are using an external endpoint for this, so it could theoretically stop working correctly at any time which is not very reliable. We have 3 options from the top of my head to mitigate/negate this:

  1. Make the default case return null if we fail to fetch any images using this API (so no images being displayed) - this is the current behavior.
  2. Make the default case return a static list of images stored locally in our codebase - good fallback because we'll at least be displaying something if the API fails but this list will definitely be outdated as it will not be regularily maintained.
  3. Make our own endpoint to fetch images from our Google Photos library - something like an exact copy of what is being done here: https://medium.com/@ValentinHervieu/how-i-used-google-photos-to-host-my-website-pictures-gallery-d49f037c8e3c - this will require more effort as we don't really have a backend running at the moment