How halilhub/-haliltodo works
hallil-todo is a task-planning web app. A user creates categorized, prioritized tasks, then completes, deletes, or reorders them; the React app sends task operations to an Express API, which persists them in SQLite. The UI separates active and completed tasks and also provides a Pomodoro timer, task-count statistics, and a theme toggle. The main API and component relationships are visible in the excerpts; broader capabilities are included only where documented. The timer’s audio notification is an external optional dependency.
Main entry points: App.jsx App state and API client · TaskItem.jsx Task card · TaskInput.jsx Task entry · TaskList.jsx Active task list
Components 14
Task interface
- App state and API client
frontend/src/App.jsx - Task entry
frontend/src/components/TaskInput.jsx - Active task list
frontend/src/components/TaskList.jsx - Task card
frontend/src/components/TaskItem.jsx
Focus and display
- Theme toggle
frontend/src/components/ThemeToggle.jsx - Pomodoro timer
frontend/src/components/Pomodoro.jsx - Task statistics
frontend/src/components/Stats.jsx
Task API
- Express server
backend/src/index.js - Task routes
backend/src/routes/taskRoutes.js - Task operations
backend/src/controllers/taskController.js
SQLite persistence
- SQLite connection
backend/src/db/setup.js - Task database
Other components
- User
- Notification audio
Connections 17
- User → Task entry: enters task
README.md - User → Task card: manages tasks
README.md - App state and API client → Task entry: renders
frontend/src/App.jsx - Task entry → App state and API client: submits task
frontend/src/App.jsx - App state and API client → Active task list: renders active tasks
frontend/src/App.jsx - Active task list → Task card: renders cards
frontend/src/components/TaskList.jsx - App state and API client → Task card: renders completed tasks
frontend/src/App.jsx - Task card → App state and API client: requests task changes
frontend/src/App.jsx - App state and API client → Express server: sends task API requests
frontend/src/App.jsx - Express server → Task routes: mounts routes
backend/src/index.js - Task routes → Task operations: dispatches requests
backend/src/routes/taskRoutes.js - Task operations → SQLite connection: queries database
backend/src/controllers/taskController.js - SQLite connection → Task database: opens file
backend/src/db/setup.js - App state and API client → Theme toggle: renders
frontend/src/App.jsx - App state and API client → Pomodoro timer: renders
frontend/src/App.jsx - Pomodoro timer → Notification audio: plays alert
frontend/src/components/Pomodoro.jsx - App state and API client → Task statistics: passes tasks
frontend/src/App.jsx