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