vipinkumar721/mern-weather-app-backend ? reverse-engineered prompt
Reverse engineered prompt
Build me the backend for a weather app that can take a city or location, fetch the current weather and basic forecast data, and send it back in a simple API response.
I want it set up as a clean Node server with separate routes, controllers, and config so it’s easy to grow later. Please include environment based setup for things like the weather API key, a health check route, and proper error handling for bad locations or failed requests. If it makes sense, add a small sample endpoint for searching weather by city and returning the result in a format a frontend can use right away.
Make it feel like a real backend a MERN frontend could connect to, with clear folder organization and sensible defaults. If you need to check current docs for the weather service or best practices, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit