Scaffold a new Convex app with realtime + auth + file uploads
Quando usar: You're starting fresh and want correct Convex patterns from file one.
Pré-requisitos
- Convex CLI — npm create convex
Fluxo
-
Design the schemaUse the convex-schema-validator skill. Design tables for users, projects, and files with proper indices.✓ Copiado→ Schema uses v.id(), indices declared, relationships correct
-
Wire queries and mutationsUse the convex-functions skill. Implement CRUD for projects.✓ Copiado→ 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.✓ Copiado→ React subscribes via useQuery, files stored via storage.generateUploadUrl
Resultado: A correctly-structured Convex app you can build on.
Armadilhas
- Using actions where mutations suffice — Skill enforces: mutations for DB writes, actions for external I/O