|
|
1 月之前 | |
|---|---|---|
| deploy | 5 月之前 | |
| doc | 1 月之前 | |
| docs | 5 月之前 | |
| frontend | 1 月之前 | |
| server | 1 月之前 | |
| web | 2 月之前 | |
| .gitattributes | 5 月之前 | |
| .gitignore | 1 月之前 | |
| CODE_OF_CONDUCT.md | 5 月之前 | |
| CONTRIBUTING.md | 5 月之前 | |
| LICENSE | 5 月之前 | |
| Makefile | 5 月之前 | |
| README.md | 1 月之前 | |
| config.yaml | 1 月之前 | |
| gin-vue-admin.code-workspace | 5 月之前 | |
| go.mod | 1 月之前 | |
| go.sum | 1 月之前 | |
| lc_garage.sql | 5 月之前 | |
| main.go | 1 月之前 | |
| wails.json | 1 月之前 |
基于 Wails v2 构建的单进程桌面应用。
go install github.com/wailsapp/wails/v2/cmd/wails@latest
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS lc_garage DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci;"
mysql -uroot -proot lc_garage < lc_garage.sql
修改 config.yaml 中的数据库连接信息(默认 root/root@127.0.0.1:3306/lc_garage)。
# 安装前端依赖
cd frontend && npm install && cd ..
cd lc_garage
wails dev
Wails 自动:
cd lc_garage
wails build
产物:build/bin/smart-parking.exe,需与 config.yaml 同目录。
admin123456lc_garage/
├── main.go # Wails 入口
├── wails.json # Wails 配置
├── config.yaml # 后端配置
├── server/ # Go 后端
├── frontend/ # Vue 3 前端
└── build/bin/ # 构建产物
双击 exe 打不开?
确保 config.yaml 与 smart-parking.exe 在同一目录。
接口报 404?
检查 MySQL 是否运行,确认 lc_garage 数据库已初始化。
wails dev 卡住?
确保 cd frontend && npm install 已执行过。