How amankumar-git9868/manomitra works
Mano-Mitra is a mental-wellness application with a React client and Express/MongoDB API. Users enter through the landing, login, or signup pages, then access a care workspace for chat support, mood tracking, resources, appointments, and peer groups; administrators have a separate dashboard. The API exposes authentication, chat, mood, appointment, group, and admin routes, with persistence in domain models and optional Gemini-backed chatbot replies. Frontend-to-API calls are not established by the excerpts or index references, so those links are omitted.
Main entry points: App.jsx Care workspace · app.js HTTP API · AppRoutes.jsx Page routing · authRoutes.js Authentication routes
Components 34
Web client
- Page routing
src/routes/AppRoutes.jsx - Auth provider
src/auth/AuthContext.jsx - Auth context
src/auth/authContext.js - Landing page
src/pages/Landing.jsx - Login page
src/pages/Login.jsx - Signup page
src/pages/Signup.jsx - Care workspace
src/App.jsx - Wellness dashboard
src/components/Dashboard.jsx - Chat assistant UI
src/components/ChatAssistant.jsx - Mood tracker UI
src/components/MoodTracker.jsx - Resource library
src/components/ResourceGrid.jsx - Appointment booking UI
src/components/AppointmentBooking.jsx - Peer support UI
src/components/PeerSupport.jsx - Admin dashboard UI
src/pages/AdminDashboard.jsx
API workflows
- HTTP API
app.js - Authentication routes
routes/authRoutes.js - Authentication logic
controllers/authController.js - Chat routes
routes/chatRoutes.js - Chat workflow
controllers/chatController.js - Mood routes
routes/moodRoutes.js - Mood workflow
controllers/moodController.js - Appointment routes
routes/appointmentRoutes.js - Appointment workflow
controllers/appointmentController.js - Group routes
routes/groupRoutes.js - Group workflow
controllers/groupController.js - Admin routes
routes/adminRoutes.js - Admin analytics
controllers/adminController.js - Access control
middleware/authMiddleware.js - Request schemas
validators/schemas.js
Support services
- Support reply engine
services/chatbotService.js - Guest sessions
services/guestSession.js
Persistent data
- User records
models/User.js
Other components
- Visitor / member
- Gemini AI
Connections 34
- Visitor / member → Page routing: opens app
src/routes/AppRoutes.jsx - Page routing → Landing page: routes to
src/routes/AppRoutes.jsx - Page routing → Login page: routes to
src/routes/AppRoutes.jsx - Page routing → Signup page: routes to
src/routes/AppRoutes.jsx - Page routing → Care workspace: routes to
src/routes/AppRoutes.jsx - Page routing → Admin dashboard UI: routes to
src/routes/AppRoutes.jsx - Auth provider → Auth context: provides context
src/auth/AuthContext.jsx - Care workspace → Wellness dashboard: renders
src/App.jsx - Care workspace → Chat assistant UI: renders
src/App.jsx - Care workspace → Mood tracker UI: renders
src/App.jsx - Care workspace → Resource library: renders
src/App.jsx - Care workspace → Appointment booking UI: renders
src/App.jsx - Care workspace → Peer support UI: renders
src/App.jsx - HTTP API → Authentication routes: mounts
app.js - HTTP API → Chat routes: mounts
app.js - HTTP API → Mood routes: mounts
app.js - HTTP API → Appointment routes: mounts
app.js - HTTP API → Group routes: mounts
app.js - HTTP API → Admin routes: mounts
app.js - Authentication routes → Authentication logic: dispatches
routes/authRoutes.js - Authentication logic → User records: reads/writes
controllers/authController.js - Chat routes → Chat workflow: dispatches
routes/chatRoutes.js - Chat workflow → Support reply engine: requests reply
controllers/chatController.js - Support reply engine → Gemini AI: generates reply
services/chatbotService.js - Mood routes → Mood workflow: dispatches
routes/moodRoutes.js - Mood workflow → Guest sessions: uses sessions
controllers/moodController.js - Mood workflow → User records: resolves guest
- Appointment routes → Appointment workflow: dispatches
routes/appointmentRoutes.js - Group routes → Group workflow: dispatches
routes/groupRoutes.js - Admin routes → Admin analytics: dispatches
routes/adminRoutes.js - Admin routes → Access control: guards access
routes/adminRoutes.js - Authentication routes → Request schemas: validates input
routes/authRoutes.js - Chat routes → Request schemas: validates input
routes/chatRoutes.js - Mood routes → Request schemas: validates input
routes/moodRoutes.js