react-photo-gallery icon indicating copy to clipboard operation
react-photo-gallery copied to clipboard

How to use data from a local json file instead of doing a call to the Flickr API?

Open Guthman opened this issue 5 years ago • 0 comments

This is not an issue with the app (I haven't found any alternative that's as beautiful as this, especially with the line breaking algo, thanks!), just a question that I think will be easy for a React dev.

I would like to use this gallery without the Flickr API (or any other API). I'm hosting my photos myself and I can generate a json file with identical contents as the Flickr API response. I would like to use this self-generated json file as input for the gallery. I've fiddled around with the fs/fs-extra module to accomplish this, but I'm not getting anywhere (I have experience with Python, JS/React is totally new to me).

A small code sample would be most helpful!

(And if it matters, I will be Dockerizing the app later on)

Thanks for your time.

Guthman avatar Dec 29 '19 22:12 Guthman