结构目录优化

This commit is contained in:
eafonyang
2026-07-30 11:32:45 +08:00
parent 99ab6cc4f4
commit 707d889514
29 changed files with 10 additions and 95 deletions
+4
View File
@@ -54,6 +54,10 @@ lerna-debug.log*
dist/
.cache/
# Nuxt
.nuxt/
.output/
# Testing
coverage/
.nyc_output/
-64
View File
@@ -1,64 +0,0 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
ENV/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
*.manifest
*.spec
autoeq/
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
.qoder
# Environment
.env
.env.local
.env.*.local
# Logs
*.log
logs/
# Node
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
dist/
.cache/
# Testing
coverage/
.nyc_output/
# Misc
*.bak
*.tmp
.TemporaryItems/
+6 -7
View File
@@ -9,11 +9,11 @@
## 架构总览
```
用户浏览器 ──→ Nuxt 4 SPA (www/web) ──→ Dashboard API (Express + Drizzle) ──→ MySQL (audio)
用户浏览器 ──→ Nuxt 4 SPA (www) ──→ Dashboard API (Express + Drizzle) ──→ MySQL (audio)
管理员浏览器 ──→ soybean-admin (dashboard/frontend) ──→ Dashboard API (Express + Drizzle) ──→ MySQL (audio)
```
- **Web 前端**www/web):面向用户的产品展示官网(SPA
- **Web 前端**(www):面向用户的产品展示官网(SPA)
- **管理后台**dashboard/frontend):soybean-admin,新增「官网管理」菜单模块
- **API 服务**dashboard/backend):Express + TypeScript + Drizzle ORM,统一提供数据接口
- **数据库**:MySQL(复用现有 `audio` 数据库)
@@ -21,8 +21,7 @@
## 目录结构
```
www/
└── web/ # 前端官网(Nuxt 4
www/ # 前端官网(Nuxt 4)
dashboard/
├── backend/ # 统一 API 服务(Express + TypeScript + Drizzle + MySQL
@@ -42,7 +41,7 @@ docs/
---
## Web 前端 (`web/`)
## Web 前端 (`www/`)
| 技术 | 版本 | 说明 |
|------|------|------|
@@ -63,7 +62,7 @@ docs/
Nuxt 4 引入 `app/` 源码目录,将应用代码与项目根配置分离:
```
web/
www/
├── app/ # 源码目录
│ ├── app.vue # 入口
│ ├── assets/ # 静态资源
@@ -184,7 +183,7 @@ web/
| 模块 | 候选方案 |
|------|----------|
| Web 前端(www/web | Vercel / Cloudflare Pages / Nginx 静态托管 |
| Web 前端(www | Vercel / Cloudflare Pages / Nginx 静态托管 |
| 管理后台(dashboard/frontend | Nginx 静态托管(现有方案) |
| API 服务(dashboard/backend | Docker 容器(现有方案,端口 8083) |
| 数据库 | 现有 MySQL 实例 |
View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

-24
View File
@@ -1,24 +0,0 @@
# Dependencies
node_modules/
# Build output
dist/
.output/
# Nuxt generated
.nuxt/
# Env local files
.env.local
.env.*.local
# Logs
*.log
# Editor
.vscode/*
!.vscode/extensions.json
.idea/
# OS
.DS_Store