gin-first

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

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

Go to latest
Published: Nov 9, 2018 License: MIT Imports: 8 Imported by: 0

README

gin-first

Simple Rest API using Gin web framework, Gorm as ORM 、Logrus as log middleware ,also using MVC pattern

基于 Gin和Gorm 搭建的一个Web后台管理系统的框架

特点:

 1.内置很多web常用的正则校验规则,以及正则校验函数(helper/regex.go)

 2.基于JWT的API接口token认证
 
 3.基于Logrus实现日志分类输出
 
 4.基于gin-swagger实现,api接口文档输出
 
 5.实现跨域Cors
 
 6.配置好了完整的dockerfile,可以直接运行将项目编译成docker镜像

Swagger效果:http://182.61.45.175:8080/swagger/index.html

image

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
key

Jump to

Keyboard shortcuts

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