|
|
3 月之前 | |
|---|---|---|
| src | 3 月之前 | |
| .gitignore | 3 月之前 | |
| README.md | 3 月之前 | |
| angular.json | 3 月之前 | |
| package-lock.json | 3 月之前 | |
| package.json | 3 月之前 | |
| tsconfig.app.json | 3 月之前 | |
| tsconfig.json | 3 月之前 |
一个基于Angular的时尚设计应用,包含3D设计、虚拟试衣、社区分享等功能。
diy-cloth/
├── src/
│ ├── app/
│ │ ├── components/ # 组件
│ │ │ ├── auth/ # 认证组件
│ │ │ ├── home/ # 首页组件
│ │ │ ├── design-center/ # 设计中心组件
│ │ │ ├── fitting-room/ # 试衣间组件
│ │ │ ├── community/ # 社区组件
│ │ │ ├── profile/ # 个人中心组件
│ │ │ └── shared/ # 共享组件
│ │ ├── services/ # 服务
│ │ ├── models/ # 数据模型
│ │ ├── guards/ # 路由守卫
│ │ └── app.routes.ts # 路由配置
│ ├── styles.scss # 全局样式
│ └── index.html # 主HTML文件
├── angular.json # Angular配置
├── package.json # 项目依赖
└── tsconfig.json # TypeScript配置
npm install
npm start
应用将在 http://localhost:4200 启动
npm run build
构建文件将输出到 dist/ 目录
项目预留了完整的API集成接口:
POST /api/auth/login - 用户登录POST /api/auth/register - 用户注册POST /api/auth/logout - 用户退出GET /api/community/popular - 获取热门作品POST /api/community/works - 发布作品PUT /api/community/works/:id/like - 点赞作品GET /api/user/profile - 获取用户资料PUT /api/user/profile - 更新用户资料GET /api/user/works - 获取用户作品src/app/services/ 中的API_BASE_URLnpm start 启动开发服务器npm run build 构建项目dist/ 目录部署到Web服务器git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)npm install后会自动解决本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情
如有问题或建议,请通过以下方式联系:
注意: 这是一个演示项目,部分功能使用模拟数据。在生产环境中使用前,请确保集成真实的后端API服务。 # yvfe