How raghavendrabaheti/task-todo works
TaskFlow is a web task manager with account registration/login, authenticated task management, and task analytics. Users register or sign in, then reach a protected dashboard to create, view, update, and delete tasks; a separate analytics page presents task summaries. The backend exposes auth, task, and analytics routes, with SQLAlchemy-backed task storage and an in-memory user registry in the sampled auth code. Frontend-to-analytics request wiring and several modules were not sampled, so uncertain connections are omitted.
Main entry points: App.tsx Page routing · auth/routes.py Auth routes · Dashboard.tsx Task dashboard · tasks/routes.py Task routes
Components 22
Web app
- App bootstrap
taskflow-frontend/src/main.tsx - Page routing
taskflow-frontend/src/App.tsx - HTTP client
taskflow-frontend/src/api/axios.ts - Navigation
taskflow-frontend/src/components/Navbar.tsx - Analytics page
taskflow-frontend/src/pages/Analytics.tsx
Identity
- Login page
taskflow-frontend/src/auth/Login.tsx - Registration page
taskflow-frontend/src/auth/Register.tsx - Auth state
taskflow-frontend/src/context/AuthContext.tsx - Route guard
taskflow-frontend/src/auth/ProtectedRoute.tsx - Auth routes
backend/app/auth/routes.py - Token and passwords
backend/app/auth/utils.py - User dependency
backend/app/auth/deps.py - In-memory users
backend/app/auth/routes.py
Task management
- Task dashboard
taskflow-frontend/src/pages/Dashboard.tsx - Task card
taskflow-frontend/src/components/TaskCard.tsx - Task routes
backend/app/tasks/routes.py - Task model
backend/app/tasks/models.py
Backend services
- API application
backend/app/main.py - Analytics routes
backend/app/analytics/routes.py - Database sessions
backend/app/database.py - Task database
backend/app/database.py
Other components
- User
Connections 28
- User → App bootstrap: uses
- App bootstrap → Auth state: provides state
- App bootstrap → Page routing: renders
- Page routing → Login page: routes
- Page routing → Registration page: routes
- Page routing → Route guard: protects pages
- Route guard → Task dashboard: allows access
- Route guard → Analytics page: allows access
- Login page → Auth state: signs in
- Registration page → Auth state: registers
- Auth state → HTTP client: sends requests
- Task dashboard → HTTP client: task requests
- Task dashboard → Task card: renders tasks
- Task dashboard → Navigation: renders
- Analytics page → Navigation: renders
- API application → Auth routes: mounts
- API application → Task routes: mounts
- API application → Analytics routes: mounts
- Auth routes → In-memory users: reads and writes
- Auth routes → Token and passwords: hashes and issues tokens
- Auth routes → HTTP client: serves auth requests
- Task routes → User dependency: requires user
- Task routes → Database sessions: uses session
- Task routes → Task model: queries and updates
- Analytics routes → User dependency: requires user
- Analytics routes → Database sessions: uses session
- Analytics routes → Task model: counts tasks
- Database sessions → Task database: reads and writes