Categorygithub.com/henvo/golang-gin-gorm-starter
modulepackage
0.0.0-20210320220252-36b8c94c9415
Repository: https://github.com/henvo/golang-gin-gorm-starter.git
Documentation: pkg.go.dev

# README

Golang Gin GORM starter

This repository contains a starter template for rapid microservice development with Go. It uses Gin and GORM.

Installation

  • Get the repository from GitHub
git clone [email protected]:henvo/golang-gin-gorm-starter.git
  • Install dependencies
go get
  • Run app
go run main.go

Things to consider

  • Rename all instances of github.com/henvo/golang-gin-gorm/ to your package
  • Switch from the default database driver (mysql) to sqlite, postgresql, ...

Env variables

  • PORT (Default: 8080)
  • GIN_MODE (Default: debug)
  • DATABASE_HOST (Default: localhost:3306)
  • DATABASE_NAME (Default: go_test)
  • DATABASE_USERNAME (Default: golang)
  • DATABASE_PASSWORD (Default: golang)

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author