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