refactor: 标准化项目结构 frontend/ + backend/ + SQLite + run.sh
- 目录重构: app/ -> frontend/,与 backend/ 并列 - 数据库: 默认 SQLite(零配置),修复 DSN() bug - run.sh: 一键启动前后端,支持 start/stop/restart/status - Makefile: install/dev/build/lint/clean 快捷命令 - vite.config.ts: 配置 dev server 端口 5173 + API 代理到 8080 - config.yaml: SQLite 默认配置,开箱即用 - docs/: 完整开发文档(项目结构/API/数据库/规范/部署) - 修复: GORM foreign key 关联声明 - 修复: go get gorm.io/driver/sqlite 依赖
This commit is contained in:
1 parent
7d6674bddd
commit
97c4207ff8
132 files changed
+1572
-34
No files matched your search
+14
-5
@@ -1,10 +1,10 @@
|
||||
# Dependencies
|
||||
node_modules/
|
||||
app/node_modules/
|
||||
frontend/node_modules/
|
||||
|
||||
# Build output
|
||||
app/dist/
|
||||
app/dist-ssr/
|
||||
frontend/dist/
|
||||
frontend/dist-ssr/
|
||||
backend/bin/
|
||||
*.exe
|
||||
*.exe~
|
||||
@@ -17,9 +17,14 @@ backend/vendor/
|
||||
*.test
|
||||
*.out
|
||||
|
||||
# Config
|
||||
config.yaml
|
||||
# Compiled binary
|
||||
backend/aiops-server
|
||||
backend/aiops
|
||||
|
||||
# Config (keep backend/config.yaml as default)
|
||||
config.local.yaml
|
||||
*.local
|
||||
.env
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
@@ -39,6 +44,10 @@ logs/
|
||||
# Database
|
||||
*.db
|
||||
*.sqlite
|
||||
backend/data/
|
||||
|
||||
# Docker
|
||||
docker-data/
|
||||
|
||||
# PID files
|
||||
*.pid
|
||||
Reference in new issue
Block a user