gin-skeleton

command module
v0.0.0-...-81f72a3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 14 Imported by: 0

README

基于gin搭建的web项目骨架

🏗 快速开始

环境要求
  • Go (1.17+)
  • MySQL (5.7+)
  • Redis
运行说明

克隆代码库

git clone https://github.com/xiaoriri-team/gin-skeleton.git
后端
  1. 导入项目根目录下的 init.sql 文件至MySQL数据库

  2. 拷贝项目根目录下 config.yaml.sample 文件至 config.yaml,按照注释完成配置编辑

  3. 编译后端

    go mod download
    go build -o gin-skeleton .
    
  4. 启动后端

    chmod +x gin-skeleton
    ./gin-skeleton
    
其他说明

建议后端服务使用 supervisor 守护进程,并通过 nginx 反向代理后,提供API给前端服务调用。

代码结构比较简单,很方便扩展

👯‍♀️ 贡献

喜欢的朋友欢迎给个Star、贡献PR。

License

Distributed under the MIT License. See LICENSE for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
dao
pkg
app

Jump to

Keyboard shortcuts

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