How huyg17082006/todoapp-reactjs-express-mysql works
This is a React and Express/MySQL todo app. Users load and sort/filter tasks, add tasks, and manage task status or titles; the client calls the task API, whose controller delegates persistence to the MySQL model. The UI also shows task counts and notifications. The README and source index establish the main client/server capabilities, but some interactions (notably route registration and individual card actions) are not excerpted, so those links are omitted rather than inferred.
Main entry points: HomePage.jsx Task dashboard · App.jsx Page routing · FunctionBar.jsx Task controls · ManagerList.jsx Task list
Components 22
Todo client
- Page routing
app/client/src/App.jsx - Task dashboard
app/client/src/pages/HomePage.jsx - Task controls
app/client/src/components/FunctionBar/FunctionBar.jsx - Task list
app/client/src/components/ManagerList/ManagerList.jsx - Task card
app/client/src/components/ui/TaskCard/TaskCard.jsx - Sort control
app/client/src/components/DateFilter/DateFilter.jsx - Header
app/client/src/components/HeaderBar/HeaderBar.jsx - Task summary
app/client/src/components/FooterBar/FooterBar.jsx - Empty state
app/client/src/components/ui/EmptyTaskCard/EmptyTaskCard.jsx - Notification display
app/client/src/components/Notification/Notification.jsx - Notification state
app/client/src/components/Notification/NotificationContext.js - Notification helper
app/client/src/hooks/useNotify.jsx - Not-found page
app/client/src/pages/NotFound.jsx - Task API client
app/client/src/services/taskServices.js - HTTP helper
app/client/src/helpers/Fetch.js
Task API
- Express server
app/server/server.js - Task routes
app/server/routes/taskRouts.js - Task controller
app/server/controller/taskController.js
MySQL persistence
- Task model
app/server/model/task.js - MySQL pool
app/server/db.js
Other components
- User
- MySQL database
Connections 24
- User → Page routing: opens app
app/client/src/App.jsx - Page routing → Task dashboard: routes to
app/client/src/App.jsx - Page routing → Not-found page: routes to
app/client/src/App.jsx - Task dashboard → Task controls: renders
app/client/src/pages/HomePage.jsx - Task dashboard → Task list: renders
app/client/src/pages/HomePage.jsx - Task dashboard → Sort control: renders
app/client/src/pages/HomePage.jsx - Task dashboard → Header: renders
app/client/src/pages/HomePage.jsx - Task dashboard → Task summary: renders
app/client/src/pages/HomePage.jsx - Task dashboard → Notification display: renders
app/client/src/pages/HomePage.jsx - Task dashboard → Notification state: provides state
app/client/src/pages/HomePage.jsx - Task list → Task card: renders
app/client/src/components/ManagerList/ManagerList.jsx - Task list → Empty state: renders
app/client/src/components/ManagerList/ManagerList.jsx - Task controls → Task API client: calls
app/client/src/components/FunctionBar/FunctionBar.jsx - Task controls → Notification helper: uses
app/client/src/components/FunctionBar/FunctionBar.jsx - Notification helper → Notification state: reads and sets
app/client/src/hooks/useNotify.jsx - Notification display → Notification state: reads state
app/client/src/components/Notification/Notification.jsx - Task dashboard → Task API client: fetches tasks
app/client/src/pages/HomePage.jsx - Task API client → HTTP helper: delegates HTTP
app/client/src/services/taskServices.js - Express server → Task routes: mounts API
app/server/server.js - Task routes → Task controller: registers handlers
app/server/routes/taskRouts.js - Task controller → Task model: calls task methods
app/server/controller/taskController.js - Task model → MySQL pool: executes SQL
app/server/model/task.js - MySQL pool → MySQL database: connects
- Express server → MySQL pool: checks connection
app/server/server.js