feat: 初始化项目

This commit is contained in:
Daniel
2026-03-07 19:37:38 +08:00
parent ea760bb71c
commit 382aa955ef
13 changed files with 447 additions and 166 deletions

View File

@@ -6,24 +6,25 @@
---
## 项目结构
## 项目结构(前后端分离)
```
720yun-offline/
├── index.html # 本地全景查看页Pannellum
├── config.json # 全景配置(默认使用 image/ 六面图)
├── lib/
│ ├── pannellum.js
│ └── pannellum.css
├── image/ # 六面体全景图mobile_f/r/b/l/u/d.jpg默认展示来源
├── panorama/ # 单张全景图(可选)
├── server.js # Node 静态 + API 服务(统计、留言、弹幕)
├── db.js # SQLite 封装data/pano.db
├── data/ # 数据库目录(自动创建,已 gitignore
├── build.js # 构建脚本,产出 dist/ 便于部署
├── package.json # Node 脚本start / build / preview
├── fetch_720yun.py # 自动抓取脚本(若页面有直出 URL 则可用)
├── parse_720yun_doc.py # 从 text.md 解析 URL--download 下载到 image/
├── index.html # 前端页面Pannellum + 统计/弹幕
├── config.json # 全景配置(六面图、简介等
├── api.config.json # 前端用API 根地址,空为同源
├── lib/ # Pannellum
├── image/ # 六面体全景图
├── server.js # 本地联合模式:静态 + 挂载 server/ API
├── build.js # 构建前端静态到 dist/
├── package.json # 根目录start / build / preview
├── server/ # 后端(可单独部署
│ ├── server.js # Express API 路由
│ ├── db.js # SQLite统计、留言、settings 弹幕开关)
│ ├── index.js # 单独启动 APInode index.js
│ ├── package.json # 后端依赖
│ └── data/ # pano.db自动创建
├── docs/部署说明.md # 前后端分离部署与弹幕配置
└── README.md
```