# go-study **Repository Path**: Liguangyu1017/go-study ## Basic Information - **Project Name**: go-study - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-07 - **Last Updated**: 2024-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: Gin, gorm, vite, vue3 ## README # go-study 本项目使用 `vue3` + `vite` 实现了一个简单的包含注册登录功能的 WebUI,使用 `gin` + `gorm` + `mysql` 完成具体后端逻辑。 (仅供个人学习使用) ## 如何本地运行 1. 下载项目到本地:`git clone https://gitee.com/Liguangyu1017/go-study.git` 2. 配置 mysqlDSN: 进入`application.yml`目录,修改相关信息。 ![alt text](img/image-2.png) ### 部署前端 (确保已安装 vite 和 vue3) 1. 进入 `frontend` 目录,执行 `npm install` 2. 启动前端项目:`npm run dev` 3. 当看到这个页面时表示前端项目启动成功 ![alt text](img/image-4.png) ### 部署后端 (确保已配置好 go 环境) 1. 新建一个 `terminal`,进入 `server` 目录,执行 `go mod tidy` 2. 启动后端服务器: `go run main.go` 3. 当看到这个页面时表示后端项目启动成功 ![alt text](img/image-5.png)