vahiiiid/go-rest-api-boilerplate — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a production ready Go REST API starter kit that I can use as the base for new backend projects.

I want it to come with user registration and login, JWT access and refresh tokens, role based permissions, an admin user flow, PostgreSQL migrations, health checks, clean request and error responses, structured logging, and good security defaults like rate limiting and CORS. Please organize it in a clean handler, service, repository style so it’s easy to add new features later.

Make it easy to run locally with Docker and hot reload, and include a simple setup command so I can clone it and start coding fast. Add Swagger docs and a Postman collection so I can test the API in the browser or Postman. Please include unit and integration tests, example environment files, production Docker setup, and clear docs for adding new models and routes.

Also add helpful AI coding assistant guidance for Cursor, Copilot, Windsurf, and agents that read AGENTS.md.

Want more depth? Deep Reverse