fastapi-redis-cache should make this reasonably painless. Note that project seems to be abandoned with a lot of un-merged PRs so I have forked and updated the project to fix a few existing bugs, merge some PRs and add some new features. I'm still putting the finishing touches on it but it should be ready soon.
templates/index.html
. Look at how to integrate API configuration values with this front end.Pydantic
that integrates React with FastAPI without writing any JavaScript.