How creepahh/task-manager works
Task Manager is a React client backed by an Express API and MySQL. Users register or sign in, then use the dashboard to list, create, edit, and delete their personal tasks; task endpoints verify JWTs and scope operations to the authenticated user. The graph covers the documented authentication and CRUD capabilities. Relationships are based on the sampled source and README endpoint documentation; unsampled modules are not assumed to participate.
Main entry points: api.js API client · App.js App and routing · task.js Task routes · db.js Database connection
Components 14
React client
- App and routing
client/src/App.js - Login
client/src/components/Login.js - Registration
client/src/components/Register.js - Task dashboard
client/src/components/Dashboard.js - API client
client/src/services/api.js
Express API
- Express app
server/index.js - Authentication routes
server/routes/auth.js - Task routes
server/routes/task.js - JWT verification
server/middleware/jwt.js
Domain and persistence
- User model
server/models/User.js - Task model
server/models/Task.js - Database connection
server/config/db.js
Other components
- User
- MySQL
Connections 19
- User → App and routing: uses
README.md - App and routing → Login: routes to
client/src/App.js - App and routing → Registration: routes to
client/src/App.js - App and routing → Task dashboard: routes to
client/src/App.js - Login → API client: calls
client/src/components/Login.js - Registration → API client: calls
client/src/components/Register.js - Task dashboard → API client: calls
client/src/components/Dashboard.js - API client → Authentication routes: HTTP requests
README.md - API client → Task routes: HTTP requests
README.md - Express app → Authentication routes: mounts
server/index.js - Express app → Task routes: mounts
server/index.js - Express app → Database connection: syncs database
server/index.js - Authentication routes → User model: queries
server/routes/auth.js - Task routes → JWT verification: verifies token
server/routes/task.js - Task routes → Task model: queries
server/routes/task.js - Task model → User model: associates with
server/models/Task.js - User model → Database connection: defines model
server/models/User.js - Task model → Database connection: defines model
server/models/Task.js - Database connection → MySQL: connects to
server/config/db.js