lokalise/python-service-template ? reverse-engineered prompt

Reverse engineered prompt

Build me a production ready Python backend service template with FastAPI.

I want it set up like a real starter for a new API, with a clean structure that separates business logic, infrastructure, and HTTP routes. It should have a basic health check at the root, a detailed health endpoint, an example versioned endpoint for a Coffee API, and built in OpenAPI docs. Please include structured logging, request ID tracking, Prometheus metrics, and a good global error response so failures look consistent.

Make it easy to configure through environment variables, and add Docker support so I can run it locally or in a container without extra work. Include tests, linting, formatting, type checking, and pre commit hooks so the project feels ready for a team. If you need current library details, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab