How chakradhar080/smarttask-end-to-end-task-management-application works
SmartTask is a task-management application with a React client and a FastAPI/MySQL backend. Users sign up or log in, receive a JWT, and use a protected dashboard to view, search, filter, create, edit, and delete their tasks; the API scopes task access to the authenticated user. The graph shows the frontend request flow, API route ownership, authentication and persistence layers, and the MySQL store. Relationships are based on excerpts, SOURCE INDEX references, or README statements; unsampled implementation details are not expanded.
Main entry points: App.jsx React app routes · main.py API routes · crud.py User and task CRUD · Dashboard.jsx Task dashboard
Components 15
Web client
- React app routes
task-frontend/src/App.jsx - Login and signup
task-frontend/src/pages - Task dashboard
task-frontend/src/pages/Dashboard.jsx - Task form
task-frontend/src/pages/TaskForm.jsx - Navigation
task-frontend/src/components/Navbar.jsx - Route guard
task-frontend/src/components/ProtectedRoute.jsx - HTTP client
task-frontend/src/api.js
API and domain
- API routes
app/main.py
Backend internals
- JWT authentication
app/auth.py - User and task CRUD
app/crud.py - Request and response schemas
app/schemas.py
Persistence
- User and task models
app/models.py - Database sessions
app/database.py
Other components
- Task manager
- MySQL
Connections 18
- Task manager → React app routes: uses
task-frontend/src/App.jsx - React app routes → Login and signup: routes to
task-frontend/src/App.jsx - React app routes → Task dashboard: routes to
task-frontend/src/App.jsx - React app routes → Route guard: guards dashboard
task-frontend/src/App.jsx - React app routes → Navigation: renders
task-frontend/src/App.jsx - Login and signup → HTTP client: requests auth
task-frontend/src/pages/Signup.jsx - Task dashboard → HTTP client: requests tasks
task-frontend/src/pages/Dashboard.jsx - Task dashboard → Task form: renders
task-frontend/src/pages/Dashboard.jsx - HTTP client → API routes: sends HTTP requests
task-frontend/src/api.js - API routes → JWT authentication: authenticates requests
app/main.py - API routes → User and task CRUD: dispatches data operations
app/main.py - API routes → Request and response schemas: validates and shapes data
app/main.py - JWT authentication → User and task CRUD: looks up users
app/auth.py - JWT authentication → Database sessions: creates sessions
app/auth.py - User and task CRUD → User and task models: queries and changes
app/crud.py - User and task CRUD → Request and response schemas: uses data schemas
app/crud.py - Database sessions → User and task models: initializes tables
app/database.py - Database sessions → MySQL: connects to
app/database.py