|
|
пре 2 месеци | |
|---|---|---|
| deploy | пре 5 месеци | |
| doc | пре 2 месеци | |
| docs | пре 5 месеци | |
| frontend | пре 2 месеци | |
| server | пре 2 месеци | |
| web | пре 3 месеци | |
| .gitattributes | пре 5 месеци | |
| .gitignore | пре 2 месеци | |
| CODE_OF_CONDUCT.md | пре 5 месеци | |
| CONTRIBUTING.md | пре 5 месеци | |
| LICENSE | пре 5 месеци | |
| Makefile | пре 5 месеци | |
| README.md | пре 2 месеци | |
| config.yaml | пре 2 месеци | |
| gin-vue-admin.code-workspace | пре 5 месеци | |
| go.mod | пре 2 месеци | |
| go.sum | пре 2 месеци | |
| lc_garage.sql | пре 5 месеци | |
| main.go | пре 2 месеци | |
| wails.json | пре 2 месеци |
基于 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 已执行过。