Skip to content

coolishbee/go-gin-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages