Build Collaborative Tasks and Attachments
Add realtime updates and secure file attachments while keeping the database as the durable source of truth.
What you are building
Deliverables
Work through it one observable step at a time
- 01
Open the app in two browser sessions with separate users.
- 02
Create/update/delete a task in one browser and observe events in the other.
- 03
Reconcile realtime events with TanStack Query instead of maintaining a second independent store.
- 04
Simulate duplicate and out-of-order events and decide when to refetch.
- 05
Implement file selection and validate size/type metadata before upload.
- 06
Upload to storage and write authoritative metadata to PostgreSQL.
- 07
Authorize download based on verified workspace membership.
- 08
Delete metadata/object with an explicit lifecycle that can recover from partial failure.
- 09
Attempt an unsafe upload and unauthorized download and record the security evidence.