基于Go的后台管理框架gfast
官网:
Gfast官方网站 |GO后台管理系统|GO权限管理系统|GO快速开发框架|GO企业管理系统|GO开源框架|GO前后端分离框架|GO开源后台系统|Gfast开发文档|Gfast开发文档
Gfast前后端分离框架由奇讯科技团队研发,公司以以统计宏观数据库平台、挂图作战(督办)指挥平台为主打产品,为您提供网站建设、软件开发、APP软件定制。0874-3331516
http://www.g-fast.cn/
演示:
gfast3.2后台管理系统
源码:
1、前端 gfast-ui: gfast 前端UI
2、后端
gfast: gfast是基于GF(Go Frame)的后台管理系统 ,完善的权限用户管理,致力于快速高效开发cms系统、督办系统、后续将加入流程审批、工作流引擎、项目管理、挂图作战、数据大屏等功能。
https://gitee.com/tiger1103/gfast
文档:
介绍 - Powered by MinDoc
基于全新Go Frame 2.3+Vue3+Element Plus开发的全栈前后端分离的管理系统
前端采用vue-next-admin 、Vue、Element UI。
前端:
安装依赖
cnpm install
运行项目
cnpm run dev
打包发布
cnpm run build
配置文件
根目录下.env
# port 前端端口号
VITE_PORT = 8161
# open 运行 npm run dev 时自动打开浏览器
VITE_OPEN = false
# public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可
VITE_PUBLIC_PATH = /vue-next-admin-preview/
根目录下.env.development
# 本地环境
ENV = 'development'
# 本地环境接口地址
VITE_API_URL = 'http://localhost:8160/'
根目录下.env.production
# 线上环境
ENV = 'production'
# public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可
VITE_PUBLIC_PATH = '/sys/'
# 线上环境接口地址
VITE_API_URL = 'http://localhost:8160/'
把打包好的前端文件夹dist上传至:/www/xxxxxx/gfast-app/resource/public/目录下,dist改名为sys
nginx配置
server {
listen 8161;
server_name xxx.com;
index index.html index.htm default.htm default.html;
access_log /xxx/log/gf-app-access.log;
error_log /xxx/log/gf-app-error.log;
location ^~ /sys {
access_log off;
expires 1d;
root /www/xxxxxx/gfast-app/sys;
try_files $uri @backend;
}
location / {
try_files $uri @backend;
}
location @backend {
proxy_pass http://127.0.0.1:8160;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Cache-Control no-cache;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 800m;
}
}
后端:
安装依赖
go mod download 或 go mod tidy
项目数据库文件 resource/data/db.sql 创建数据库导入后修改配置 manifest/config/config.yaml.bak 复制改为manifest/config/config.yaml
打包
编译 linux
SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
go build main.go
# 如需要把可执行文件打包为名称是gfast-app的文件
go build -o gfast-app ./main.go
将配置文件、资源文件、执行文件、模板文件一同上传至服务器。
启动后端服务
nohup /www/xxxxxx/gfast-app/gfast-app &