Categorygithub.com/coolishbee/go-gin-sample
repositorypackage
0.0.0-20230403152415-ea17c9a0bb9d
Repository: https://github.com/coolishbee/go-gin-sample.git
Documentation: pkg.go.dev

# 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
No description provided by the author
No description provided by the author

# README

go-gin-sample

rcard License

an simple example for gin + mariadb + swagger + social(google, facebook) login token backend validate.

Installation

$ go get github.com/coolishbee/go-gin-sample

How to run

Required

  • MariaDB
  • RedisDB

Ready

Create a game database and import SQL

Conf

You should modify conf/app.ini

[database]
Type = mysql
User = root
Password =
Host = 127.0.0.1:3306
Name = game

...

Run

$ cd $GOPATH/src/go-gin-sample
$ go run main.go 

Swagger doc

Features

  • RESTful API
  • Gorm
  • Swagger
  • Gin
  • App configurable
  • Logging
  • Social Login backend validate (Google, Facebook, Apple)
  • RedisDB

TODO

  • Apple login token validate
  • LevelDB

Reference