GithubHelp home page GithubHelp logo

fast_gin's Introduction

FastGin快速开发脚手架

项目简介

为了快速开发新项目,每次都需要去做一些相同的操作,例如读取配置文件,写路由,连接gorm,这样很繁琐

所以本项目做好这些事情,你只需要在此基础上添砖加瓦即可

功能特性

  1. 配置文件的读取
  2. logrus日志
  3. gorm连接mysql
  4. 命令行参数绑定
  5. 内置swagger的api文档
  6. jwt中间件
  7. 通用列表分页查询
  8. 密码认证
  9. 图片验证码

项目运行

# 安装环境
go mod tidy

# 
go run main.go

目录说明

api              api接口的存放目录
config           配置的struct目录
core             初始化操作
flag             命令行参数
global           全局变量
middleware       gin的中间件
models           表结构
routers          路由
service          服务
testdata         测试文件
utils            工具目录
go.mod      
main.go          入口文件
README.md
settings.yaml    配置文件

fast_gin's People

Contributors

fengfengzhidao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.