Scaffold a new Convex app with realtime + auth + file uploads
Когда использовать: You're starting fresh and want correct Convex patterns from file one.
Предварительные требования
- Convex CLI — npm create convex
Поток
-
Design the schemaUse the convex-schema-validator skill. Design tables for users, projects, and files with proper indices.✓ Скопировано→ Schema uses v.id(), indices declared, relationships correct
-
Wire queries and mutationsUse the convex-functions skill. Implement CRUD for projects.✓ Скопировано→ Query for reads, mutation for writes, no action misuse
-
Add realtime + file uploadsUse convex-realtime and convex-file-storage to make projects live-update with file attachments.✓ Скопировано→ React subscribes via useQuery, files stored via storage.generateUploadUrl
Итог: A correctly-structured Convex app you can build on.
Подводные камни
- Using actions where mutations suffice — Skill enforces: mutations for DB writes, actions for external I/O