command
module
Version:
v0.0.0-...-81f72a3
Opens a new window with list of versions in this module.
Published: Jun 3, 2022
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
基于gin搭建的web项目骨架
🏗 快速开始
环境要求
- Go (1.17+)
- MySQL (5.7+)
- Redis
运行说明
克隆代码库
git clone https://github.com/xiaoriri-team/gin-skeleton.git
后端
-
导入项目根目录下的 init.sql
文件至MySQL数据库
-
拷贝项目根目录下 config.yaml.sample
文件至 config.yaml
,按照注释完成配置编辑
-
编译后端
go mod download
go build -o gin-skeleton .
-
启动后端
chmod +x gin-skeleton
./gin-skeleton
其他说明
建议后端服务使用 supervisor
守护进程,并通过 nginx
反向代理后,提供API给前端服务调用。
代码结构比较简单,很方便扩展
👯♀️ 贡献
喜欢的朋友欢迎给个Star、贡献PR。
License
Distributed under the MIT License. See LICENSE
for more information.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.