mnabielap/starter-kit-restapi-gonethttp ? reverse-engineered prompt

Reverse engineered prompt

Build me a production ready REST API starter in Go using the standard net/http library, with a clean project layout and clear separation between handlers, services, repositories, and routes.

I want it to support user registration and login with JWT access and refresh tokens, password hashing, role based access so only admins can manage users, plus rate limiting, structured logging, pagination, and filtering. Make it work with either SQLite or PostgreSQL through GORM, and set it up so it runs from a simple env file. Please include Docker support with a small production image, an entrypoint script, and sensible defaults for local development and container deployment.

Also add automated API test scripts so I can verify the main endpoints without using Postman. If anything is unclear, look up current Go and library docs online and keep the implementation practical and easy to run.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab