14mdzk/goscratch — reverse-engineered prompt
Reverse engineered prompt
Build me a production ready Go backend starter kit that I can clone and use as the base for new apps.
I want it to start quickly with Docker and a few make commands, then give me a working API with health checks and interactive API docs. It should include login with JWT access and refresh tokens, seeded test users, user management, roles and permissions, file upload and download, background jobs, simple real time server sent events, email support, rate limiting, and good security defaults.
Please structure it cleanly so the business logic is separate from the database, HTTP handlers, queues, storage, and other outside services. I want PostgreSQL as the main required service, but Redis, RabbitMQ, S3, and email should be optional with safe local or no op fallbacks so development is easy.
Also include migrations, config through defaults plus env files, Docker setup, tests, linting, OpenAPI docs, metrics, tracing, JSON logs, and clear docs for how to run it and add new modules.
Want more depth? Deep Reverse