uniapp-cloud
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhen to use this skill
何时使用本技能
Use this skill whenever the user wants to:
- Use uniCloud cloud development services
- Work with cloud databases (add, query, update, delete data)
- Create and deploy cloud functions
- Use cloud storage for file uploads and management
- Implement datacom components for data binding
- Integrate backend services with uni-app
- Set up uniCloud project and configuration
- Handle cloud database permissions and security
当用户有以下需求时,可使用本技能:
- 使用uniCloud云开发服务
- 操作云数据库(添加、查询、更新、删除数据)
- 创建并部署云函数
- 使用云存储进行文件上传与管理
- 实现datacom组件进行数据绑定
- 将后端服务与uni-app进行集成
- 搭建uniCloud项目并完成配置
- 处理云数据库权限与安全设置
How to use this skill
如何使用本技能
This skill is organized to match the official uniCloud documentation:
-
Start with setup and project configuration:
examples/guide/intro.mdexamples/guide/project-setup.mdexamples/guide/cloud-space.md
-
Choose the cloud capability:
- Database →
examples/database/ - Cloud functions →
examples/functions/ - Storage →
examples/storage/ - Datacom →
examples/datacom/ - Security/permission →
examples/security/
- Database →
-
Open the API reference:
api/cloud-api.md
Important Notes:
- This skill focuses on uniCloud integration and usage, not general backend frameworks
- Each example includes official documentation URL
- Follow official permission and security guidance for production
本技能的结构与官方uniCloud文档保持一致:
-
从项目搭建与配置开始:
examples/guide/intro.mdexamples/guide/project-setup.mdexamples/guide/cloud-space.md
-
选择所需的云服务能力:
- 数据库 →
examples/database/ - 云函数 →
examples/functions/ - 云存储 →
examples/storage/ - Datacom →
examples/datacom/ - 安全/权限 →
examples/security/
- 数据库 →
-
查阅API参考文档:
api/cloud-api.md
重要说明:
- 本技能聚焦于uniCloud的集成与使用,不涉及通用后端框架
- 每个示例均附带官方文档链接
- 生产环境中请遵循官方的权限与安全指导
Examples and Templates
示例与模板
Examples
示例
Located in :
examples/- guide/ - Intro, project setup, cloud space creation
- database/ - CRUD, query, index, permissions
- functions/ - Function structure, deploy, call
- storage/ - Upload, download, delete
- datacom/ - datacom components and binding
- security/ - permissions and security rules
所有示例位于目录下:
examples/- guide/ - 介绍、项目搭建、云空间创建
- database/ - CRUD操作、查询、索引、权限
- functions/ - 函数结构、部署、调用
- storage/ - 上传、下载、删除
- datacom/ - datacom组件与数据绑定
- security/ - 权限与安全规则
Best Practices
最佳实践
- Security: Always set proper database permissions and rules
- Performance: Use indexes for frequently queried fields
- Cost: Optimize cloud function execution time
- Error handling: Implement proper error handling for all cloud operations
- Data validation: Validate data before saving to database
- 安全:始终设置合理的数据库权限与规则
- 性能:为频繁查询的字段添加索引
- 成本:优化云函数的执行时间
- 错误处理:为所有云操作实现完善的错误处理逻辑
- 数据校验:将数据保存到数据库前进行校验
Resources
资源
- Official Documentation: https://doc.dcloud.net.cn/uniCloud/
- Cloud Database: https://doc.dcloud.net.cn/uniCloud/database.html
- Cloud Functions: https://doc.dcloud.net.cn/uniCloud/cf-functions.html
- Cloud Storage: https://doc.dcloud.net.cn/uniCloud/storage.html
Keywords
关键词
unicloud, uniCloud, cloud development, cloud database, cloud functions, cloud storage, datacom, 云开发, 云数据库, 云函数, 云存储
unicloud, uniCloud, 云开发, 云数据库, 云函数, 云存储, datacom, 云开发, 云数据库, 云函数, 云存储