How tup-e/cmsc128-lab1_crud_nice works
This is a full-stack to-do list application: users create and manage tasks in a React interface, which calls a FastAPI REST API backed by Supabase. The main workflow includes task entry, API validation, persistence, and display with sorting and filtering; editing, completion, soft deletion, and undo are also supported. The README documents the API capabilities and Supabase use. Relationships involving the UI and backend are based on the shown source; database behavior is represented only as far as the route and configuration excerpts support it.
Main entry points: App.jsx Task state and workflow · tasks.py Task endpoints · TaskList.jsx Task list · tasks.js Task API client
Components 13
Task interface
- React entry
frontend/src/main.jsx - Task state and workflow
frontend/src/App.jsx - Task form
frontend/src/components/TaskForm.jsx - Sort and filters
frontend/src/components/TaskControls.jsx - Task list
frontend/src/components/TaskList.jsx - Task item
frontend/src/components/TaskItem.jsx
API client
- Task API client
frontend/src/api/tasks.js
API service
- FastAPI app
backend/app/main.py - Task endpoints
backend/app/routes/tasks.py - Task validation models
backend/app/schemas.py
Persistence
- Supabase client setup
backend/app/config.py
Other components
- User
- Supabase task store
Connections 13
- User → Task state and workflow: manages tasks
README.md - React entry → Task state and workflow: renders
frontend/src/main.jsx - Task state and workflow → Task form: renders
frontend/src/App.jsx - Task state and workflow → Sort and filters: renders
frontend/src/App.jsx - Task state and workflow → Task list: renders
frontend/src/App.jsx - Task list → Task item: renders
frontend/src/components/TaskList.jsx - Task state and workflow → Task API client: calls task operations
frontend/src/App.jsx - Task API client → Task endpoints: sends REST requests
README.md - FastAPI app → Task endpoints: registers
backend/app/main.py - Task endpoints → Task validation models: validates and returns
backend/app/routes/tasks.py - Task endpoints → Supabase client setup: uses client
backend/app/routes/tasks.py - Task endpoints → Supabase task store: reads and writes tasks
backend/app/routes/tasks.py - Supabase client setup → Supabase task store: creates client
backend/app/config.py