一个多分类资源管理平台,支持本地文件和外部链接的管理、分类和访问。
resource-manager/ ├── frontend/ # Vue前端项目 │ ├── public/ # 静态资源 │ ├── src/ # 源代码 │ │ ├── assets/ # 资源文件 │ │ ├── components/ # 组件 │ │ ├── router/ # 路由配置 │ │ ├── stores/ # Pinia状态管理 │ │ ├── views/ # 视图组件 │ │ ├── App.vue # 根组件 │ │ └── main.js # 入口文件 │ └── package.json # 依赖配置 ├── backend/ # FastAPI后端项目 │ ├── app/ # 应用代码 │ │ ├── core/ # 核心配置 │ │ ├── db/ # 数据库相关 │ │ ├── models/ # 数据模型 │ │ ├── routes/ # API路由 │ │ ├── schemas/ # Pydantic模型 │ │ └── main.py # 应用入口 │ ├── static/ # 静态文件 │ └── requirements.txt # Python依赖 └── README.md # 项目文档
# Windows
python -m venv venv
venv\Scripts\activate
# macOS/Linux
python3 -m venv venv
source venv/bin/activate
cd backend
pip install -r requirements.txt
cd backend
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
后端API将在 http://localhost:8000 上运行,API文档可在 http://localhost:8000/docs 访问。
cd frontend
npm install
# 或
yarn install
npm run dev
# 或
yarn dev
前端应用将在 http://localhost:5173 上运行。
cd frontend
npm run build
# 或
yarn build
cd backend
uvicorn app.main:app --host 0.0.0.0 --port 8000
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)