{"repo":"Massad/gin-boilerplate","free":true,"listed":false,"github":"https://github.com/Massad/gin-boilerplate","clone":"git clone https://github.com/Massad/gin-boilerplate.git","description":"The fastest way to deploy a RESTful API with Gin Framework — PostgreSQL, JWT auth, Redis, PDF generation, and Swagger docs out of the box.","language":"Go","stars":1219,"topics":["gin-framework","redis","golang","postgresql","boilerplate-template","gin-boilerplate","restful-api","databases","go","go-boilerplate"],"license":"MIT","category":"databases-storage","readme_excerpt":"Golang Gin Boilerplate v3 The fastest way to deploy a RESTful API with Gin Framework — structured with PostgreSQL , JWT authentication stored in Redis , and ready to build on. What's Included - sqlx: Lightweight SQL extensions for Go - jwt-go: JSON Web Tokens (JWT) middleware - go-redis: Redis client - maroto: Pure Go PDF generation - Built-in CORS , RequestID , and Auth middleware - Built-in custom form validators with reusable error translation - Invoice example — HTML preview and PDF download - Swagger API documentation - PostgreSQL with JSON/JSONB queries and trigger functions - SSL support - Go Modules Getting Started Prerequisites - Go 1.24+ - PostgreSQL - Redis Setup Clone the repository: Install dependencies: Set up your environment: Import the database schema: The database includes trigger functions ( created at column() and update at column() ) that automatically manage created at and updated at timestamps on the user and article tables. Running Or directly: Building Testing Tests are integration tests that require running PostgreSQL and Redis: SSL (Optional) To enable SSL, set SSL=TRUE in .env and generate certificates: To disable SSL, set SSL=FALSE in .env . API Endpoints User Method Path Auth Description -------- ------ ------ ------------- POST /v1/user/register No Register a new user POST /v1/user/login No Login and receive JWT tokens GET /v1/user/logout Bearer Logout (invalidates token) Article Method Path Auth Description -------- ------ ------ ------------- ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Massad","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Massad/gin-boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}