Go-Admin后台管理系统源码(GO+VUE)编译与部署

1.克隆源码:

bash 复制代码
# Get backend code
git clone https://github.com/go-admin-team/go-admin.git

# Get the front-end code
git clone https://github.com/go-admin-team/go-admin-ui.git

3.下载并安装GO开发环境:

3.编译管理后台后端

bash 复制代码
# Enter the go-admin backend project
cd ./go-admin

# Update dependencies
go mod tidy

# Compile the project
go build

# Change setting 
# File path go-admin/config/settings.yml
vi ./config/settings.yml

# 1. Modify the database information in the configuration file
# Note: The corresponding configuration data under settings.database
# 2. Confirm the log path

4.修改数据库配置

  1. 编译完成后,启动服务

同步数据库:

bash 复制代码
./go-admin migrate -c config/settings.dev.yml

启动服务:

bash 复制代码
./go-admin server -c config/settings.yml

6.编译UI前端:

下载并安装nodejs 17

修改依赖库版本并安装

启动前端:

bash 复制代码
npm install
npm run dev

运行效果如下:

相关推荐
想吃火锅10055 小时前
【leetcode】405.数字转换为十六进制数js
开发语言·javascript·ecmascript
专注VB编程开发20年5 小时前
AI 生成C# WinForm 窗体 = 目前就是垃圾
开发语言·人工智能·c#
cfm_29145 小时前
JVM GC垃圾回收初步了解
java·开发语言·jvm
~小先生~6 小时前
Python从入门到放弃(一)
开发语言·python
许彰午6 小时前
17_synchronized关键字深度解析
java·开发语言
z落落6 小时前
C# 泛型接口和泛型类+泛型约束
开发语言·c#
阿正的梦工坊6 小时前
【Rust】02-变量、不可变性与基础类型
开发语言·后端·rust
阿正的梦工坊6 小时前
【Rust】08-集合类型、字符串与迭代器入门
开发语言·rust·c#
FuckPatience7 小时前
C# 使用泛型协变将派生类类型替换为基类类型
开发语言·c#
张忠琳7 小时前
【Go 1.26.4】(Part 1) Go 1.26.4 超深度源码分析 — 总体架构与模块全景
开发语言·golang