{"repo":"akmamun/gin-boilerplate","free":true,"listed":false,"github":"https://github.com/akmamun/gin-boilerplate","clone":"git clone https://github.com/akmamun/gin-boilerplate.git","description":"Golang API Boilerplate Template using gin, gorm, logrus","language":"Go","stars":111,"topics":["golang","gin-gonic","gorm","logrus","boilerplate","postgresql","live-reload","mvc-architecture","dockerized","gin"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"Go Boilerplate An API boilerplate written in Golang with Gin Framework and Gorm Motivation Write restful API with fast development and developer friendly Table of Contents - Motivation - Configuration Manage - ENV Manage - Server Configuration - Database Configuration - PgAdmin - Installation - Local Setup Instruction - Develop Application in Docker with Live Reload - Middlewares - Boilerplate Structure - Code Examples - Let's Build an API - Deployment - Container Development Build - Container Production Build and Up - Useful Commands - ENV YAML Configure - Use Packages Configuration Manage ENV Manage - Default ENV Configuration Manage from .env . sample file .env.example - Server DEBUG set False in Production - Database Logger MASTER DB LOG MODE and REPLICA DB LOG MODE set False in production - If ENV Manage from YAML file add a config.yml file and configuration db.go and server.go. See More ENV YAML Configure Server Configuration - Use Gin Web Framework Database Configuration - Use GORM as an ORM - Use database MASTER DB HOST value set as localhost for local development, and use postgres db for docker development PG Admin - Check PG Admin on http://0.0.0.0:5050/browser/ - Login with Credential Email admin@admin.com Password root - Connect Database Host as postgres db , DB Username and Password as per .env set - Note: if not configure .env , default Username mamun and password 123 Installation Local Setup Instruction Follow these steps: - Copy .env.example as .env and config","default_branch":null,"files":null,"tree":[],"storefront":"/r/akmamun","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akmamun/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."}