go-gin-sample

command module
v0.0.0-...-ea17c9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 9 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
middleware
jwt
pkg
app
e
api
service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL