Skip to content

Golang Gin boilerplate with MySQL resource. Authenticated with Bearer and Basic authentication.

License

Notifications You must be signed in to change notification settings

mkromi/go-gin-mysql-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-gin-mysql-boilerplate

A starter project with Golang, Gin and MySQL

Golang Gin boilerplate with MySQL resource. Authenticated with Bearer and Basic authentication.

Boilerplate structure

.
├── Config
│   └── Database.go
├── Controllers
│   ├── Auth.go
│   └── User.go
├── Middlewares
│   └── Auth.go
├── Models
│   ├── Auth.go
│   ├── Schema
│   │   ├── OAuthAccessToken.go
│   │   ├── OAuthClient.go
│   │   ├── OAuthRefreshToken.go
│   │   └── User.go
│   └── User.go
├── Routes
│   └── Routes.go
├── Services
│   ├── Auth.go
│   └── Response.go
├── Validations
│   ├── Auth.go
│   └── User.go
├── go.mod
├── go.sum
├── LICENSE
├── README.md
└── main.go

Installation

go run main.go

Usage example

curl http://localhost:8080/users

Dependencies:

License

The go-gin-mysql-boilerplate is a open-source application licensed under the MIT License.

About

Golang Gin boilerplate with MySQL resource. Authenticated with Bearer and Basic authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages