{"repo":"Improwised/golang-api","free":true,"listed":false,"github":"https://github.com/Improwised/golang-api","clone":"git clone https://github.com/Improwised/golang-api.git","description":"Template for go applications","language":"Go","stars":13,"topics":["go","golang","template","boilerplate"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"Golang BoilerPlater Index - Introduction - Multiple Database System Support - Kick Start Commands - Migrations - Kratos Integration - Messaging queue - Code Walk-through - Config - Command - Route - Middleware - Model - Controller - Utils - Testcases --- Introduction - This template is build on gofiber. - To sync go packages you need to run following command. ### go mod vendor - Copy .env.example as .env for environment variables. - To add new package you can run following command. ### go get {package url} - You need to run go mod vendor after running above command to sync your pacakage with vendor directory. - Following command is use to remove unused package from your go.mod and go.sum files. ### go mod tidy - Please make sure you set proper database configuration to connect. --- Add Storage Drivers - Ref : gofiber storage --- Multiple Database System Support - We are supporting 3 types of database at this time postgres , mysql & sqlite3 - It allows us to switch to database without changing too much stuff (but it requires to change function that are varies based on system.) - goqu package allows us to do that. - we have environment variable DB DIALECT where you can set to database system type. --- Kick Start Commands - This commands are define inside Makefile . Note: Make sure you change this file if you are going to use this boilerplate with different folder structure. for ex: start commands run go run app.go api if your app.go is somewhere else then you need to update thi","default_branch":null,"files":null,"tree":[],"storefront":"/r/Improwised","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Improwised/golang-api/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."}