kaminglo/gin-template-msc ? reverse-engineered prompt
Reverse engineered prompt
Build me a clean Go backend starter using Gin that’s ready for a real app, not just a demo. I want a modular structure with separate controllers, services, models, routes, config, utils, and templates, so it’s easy to grow later.
It should include user auth with email and password, registration through email OTP, Google login, forgot password, reset password, and JWT based sessions with a current user endpoint and logout. Please add a simple sample CRUD area for books, with list, create, update, and delete routes, where write actions need login.
Use PostgreSQL, make it easy to run with Docker Compose, and include a .env example plus sensible defaults for CORS, JWT, SMTP, and Google OAuth settings. Add rate limiting and basic security middleware too. If anything needs current package or framework details, look up the latest docs online and wire it up in a clean way.
Are you gonna build this?
make sure you review the code using coderabbit