How reshma1038/todo_app works
TaskFlow is a collaborative todo application: users authenticate, open or create shared pages, manage and reorder tasks, and view reminders, analytics, and AI task assistance. The frontend routes users to page and analytics views and calls the FastAPI API; backend services enforce business rules and persist data in MongoDB. The README documents major capabilities whose route implementations were not sampled; those nodes are retained, with only documented or indexed relationships shown.
Main entry points: main.py API application · mongodb.py MongoDB collections · App.jsx Route application · auth_service.py Account service
Components 26
Web application
- Route application
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - Login and registration
frontend/src/pages/Login.jsx - Page dashboard
frontend/src/pages/Dashboard.jsx - Shared task page
frontend/src/pages/TodoPage.jsx - Analytics view
frontend/src/pages/Analytics.jsx - Authenticated API client
frontend/src/api/axios.js
Identity and pages
- Authentication API
frontend/src/api/authApi.js - Page API
frontend/src/api/pageApi.js - Authentication routes
backend/app/api/auth.py - Account service
backend/app/services/auth_service.py - Page and membership routes
backend/app/api/pages.py - Page service
backend/app/services/page_service.py
Tasks and insights
- Task routes
backend/app/api/todos.py - Task service
backend/app/services/todo_service.py - AI task intelligence
backend/app/services/ai_service.py - AI routes
backend/app/api/ai.py - Analytics service
backend/app/services/analytics_service.py - Analytics routes
backend/app/api/analytics.py
Persistence and security
- API application
backend/app/main.py - JWT and page authorization
backend/app/dependencies/auth.py - Token and password security
backend/app/core/security.py - MongoDB collections
backend/app/db/mongodb.py
Other components
- User
- Google identity service
- Google Gemini
Connections 35
- User → Route application: uses
frontend/src/App.jsx - Route application → Login and registration: routes to
frontend/src/App.jsx - Route application → Page dashboard: routes to
frontend/src/App.jsx - Route application → Shared task page: routes to
frontend/src/App.jsx - Route application → Analytics view: routes to
frontend/src/App.jsx - Login and registration → Session context: authenticates through
- Session context → Authentication API: calls
frontend/src/context/AuthContext.jsx - Authentication API → Authenticated API client: uses
frontend/src/api/authApi.js - Page dashboard → Page API: loads pages
frontend/src/pages/Dashboard.jsx - Shared task page → Authenticated API client: calls
frontend/src/pages/TodoPage.jsx - Analytics view → Authenticated API client: requests summary
README.md - Authenticated API client → API application: HTTP requests
frontend/src/api/axios.js - API application → Authentication routes: registers
backend/app/main.py - API application → Page and membership routes: registers
backend/app/main.py - API application → Task routes: registers
backend/app/main.py - API application → AI routes: registers
backend/app/main.py - API application → Analytics routes: registers
backend/app/main.py - Authentication routes → Account service: calls
backend/app/api/auth.py - Authentication routes → Token and password security: creates tokens
backend/app/api/auth.py - Account service → Token and password security: hashes and verifies
backend/app/services/auth_service.py - Account service → MongoDB collections: reads and writes users
backend/app/services/auth_service.py - Account service → Google identity service: verifies ID token
backend/app/services/auth_service.py - Page and membership routes → Page service: calls
backend/app/api/pages.py - Page service → MongoDB collections: reads and writes pages
backend/app/services/page_service.py - JWT and page authorization → Token and password security: validates JWT
backend/app/dependencies/auth.py - JWT and page authorization → MongoDB collections: loads user and page
backend/app/dependencies/auth.py - Task routes → JWT and page authorization: requires access
README.md - Task routes → Task service: task operations
README.md - Task service → MongoDB collections: reads and writes tasks
backend/app/services/todo_service.py - AI routes → AI task intelligence: calls
backend/app/api/ai.py - AI routes → Task service: gets task data
backend/app/api/ai.py - AI task intelligence → Google Gemini: optional AI requests
README.md - AI task intelligence → MongoDB collections: reads task data
backend/app/services/ai_service.py - Analytics routes → Analytics service: requests summary
README.md - Analytics service → MongoDB collections: reads task data
README.md