{"repo":"akmamun/go-fication","free":true,"listed":false,"github":"https://github.com/akmamun/go-fication","clone":"git clone https://github.com/akmamun/go-fication.git","description":"Golang API Boilerplate using chi, gorm, zerolog","language":"Go","stars":10,"topics":["boilerplate","clear-architecture","dockerized","go-template","golang","gorm","repository-pattern","zerolog","chi-router","restful-api"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"Go Fication An API Boilerplate written in Golang with chi-route and Gorm. Write restful API with fast development and developer friendly. Table of Contents - Architecture - Boilerplate Structure - Configuration Manage - ENV Manage - Server Configuration - Database Configuration - PgAdmin - Installation - Local Setup Instruction - Develop Application in Docker with Live Reload - Let's Build an API - Code Examples - Deployment - Container Development Build - Container Production Build and Up - Useful Commands - ENV YAML Configure - Use Packages Architecture In this project use 3 layer architecture - Models - Repository - Controllers - More About Uncle Bob’s Architecture Boilerplate Structure ├── config ├── controllers ├── helpers ├── infra │ ├── database │ └── logger ├── migrations ├── models ├── repository ├── routers │ ├── middlewares 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 chi Route 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 P","default_branch":null,"files":null,"tree":[],"storefront":"/r/akmamun","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akmamun/go-fication/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."}