sachinparulkar270886/sezzle_home_assessment ? reverse-engineered prompt
Reverse engineered prompt
Build me a small FastAPI weather app that lets a user type in a city on a simple web page and see the current weather right away.
It should get live weather from Open Meteo, cache successful lookups in Redis so repeat searches are fast, and save each successful request in MySQL with the city, the resolved location, whether it came from cache, and the JSON response. I also want basic health and readiness checks, a Prometheus metrics endpoint, and JSON logging so it feels production ready.
Please make it easy to run locally with Docker Compose, including the API, Redis, MySQL, and Prometheus. If possible, include a setup script or clear startup instructions so I can get it running with one command. I want the app to handle errors gracefully, keep working if the cache is down, and expose a nice browser friendly homepage plus the API docs.
Are you gonna build this?
make sure you review the code using coderabbit