How bhanu-developer5161/linguacare works
LinguaCare connects families seeking language care with educators: users register or log in, browse educator listings and profiles, send interest requests, and—after acceptance—message through role-specific dashboards. The graph covers the documented-in-code client/server flow, including authentication, profiles, requests, conversations, and Mongo-backed records. Client page-to-service usage is identified in the source index, but detailed UI calls and database setup are not shown in excerpts; uncertain wiring is omitted.
Main entry points: App.jsx Page routing · api.js API client · server.js HTTP server · requestRoutes.js Request routes
Components 25
Web client
- Page routing
client/src/App.jsx - Landing page
client/src/Home.jsx - Educator directory
client/src/pages/Educators.jsx - Educator profile
client/src/pages/EducatorProfile.jsx - Registration
client/src/pages/Register.jsx - Login
client/src/pages/Login.jsx - Family dashboard
client/src/pages/FamilyDashboard.jsx - Educator dashboard
client/src/pages/EducatorDashboard.jsx - Conversation view
client/src/components/Conversation.jsx - API client
client/src/services/api.js
API and access
- HTTP server
server/server.js - Auth routes
server/routes/authRoutes.js - User routes
server/routes/userRoutes.js - Request routes
server/routes/requestRoutes.js - JWT guard
server/middleware/authMiddleware.js - Account auth
server/controllers/authController.js
Matching and communication
- Profile and directory
server/controllers/userController.js - Interest workflow
server/controllers/requestController.js - Messaging
server/controllers/messageController.js
Persistent records
- User records
server/models/User.js - Interest requests
server/models/InterestRequest.js - Messages
server/models/Message.js - Mongo connection
server/config/db.js
Other components
- Families
- Educators
Connections 36
- Families → Page routing: uses
client/src/App.jsx - Educators → Page routing: uses
client/src/App.jsx - Page routing → Landing page: routes to
client/src/App.jsx - Page routing → Educator directory: routes to
client/src/App.jsx - Page routing → Educator profile: routes to
client/src/App.jsx - Page routing → Registration: routes to
client/src/App.jsx - Page routing → Login: routes to
client/src/App.jsx - Page routing → Family dashboard: routes to
client/src/App.jsx - Page routing → Educator dashboard: routes to
client/src/App.jsx - Registration → API client: uses
client/src/pages/Register.jsx - Login → API client: uses
client/src/pages/Login.jsx - Educator directory → API client: uses
client/src/pages/Educators.jsx - Educator profile → API client: uses
client/src/pages/EducatorProfile.jsx - Family dashboard → API client: uses
client/src/pages/FamilyDashboard.jsx - Educator dashboard → API client: uses
client/src/pages/EducatorDashboard.jsx - Family dashboard → Conversation view: renders
client/src/pages/FamilyDashboard.jsx - Educator dashboard → Conversation view: renders
client/src/pages/EducatorDashboard.jsx - Conversation view → API client: uses
client/src/components/Conversation.jsx - API client → HTTP server: HTTP requests
client/src/services/api.js - HTTP server → Auth routes: mounts
server/server.js - HTTP server → User routes: mounts
server/server.js - HTTP server → Request routes: mounts
server/server.js - Auth routes → JWT guard: protects
server/routes/authRoutes.js - User routes → JWT guard: protects
server/routes/userRoutes.js - Request routes → JWT guard: protects
server/routes/requestRoutes.js - Auth routes → Account auth: dispatches
server/routes/authRoutes.js - User routes → Profile and directory: dispatches
server/routes/userRoutes.js - Request routes → Interest workflow: dispatches
server/routes/requestRoutes.js - Request routes → Messaging: dispatches
server/routes/requestRoutes.js - Account auth → User records: reads/writes
server/controllers/authController.js - Profile and directory → User records: reads/writes
server/controllers/userController.js - Interest workflow → User records: looks up
server/controllers/requestController.js - Interest workflow → Interest requests: reads/writes
server/controllers/requestController.js - Messaging → Interest requests: checks access
server/controllers/messageController.js - Messaging → Messages: reads/writes
server/controllers/messageController.js - HTTP server → Mongo connection: connects
server/server.js