How tishyo77/mentalhealthapp works
SerenitySync is a wellness web app for account access, mood tracking, journaling, meditation, self-help reading, and therapist discovery or registration. The main user workflow enters through the React router, then uses wellness pages that retrieve or save personal data through the Express API and MongoDB. Meditation also plays YouTube videos. The graph preserves the major product areas visible in the tree; several page and route implementations were not sampled, so their internal behavior and wiring are left unspecified.
Main entry points: index.js Express API · App.jsx React router · Meditations.jsx Meditation player · Dashboard.jsx Dashboard
Components 24
Account access
- React router
client/src/App.jsx - Sign up
client/src/SignUp.jsx - Log in
client/src/LogIn.jsx
Personal wellness
- Dashboard
client/src/Dashboard/Dashboard.jsx - Mood graph
client/src/Dashboard/Graph.jsx - Personal diary
client/src/Diary/DiaryPage.jsx - Profile and avatar
client/src/Profile.jsx
Wellness resources
- Meditation player
client/src/Meditation/Meditations.jsx - Book library
client/src/Library/LibraryPage.jsx - Therapist directory
client/src/Therapist/TherapistPage.jsx - Therapist registration
client/src/Therapist/TherapistRegister.jsx
API and data
- Express API
server/index.js - User routes
server/controller/userRoute.js - Wellness routes
server/controller/detailsRoute.js - Book routes
server/controller/bookRoute.js - Meditation routes
server/controller/meditateRoute.js - Therapist routes
server/controller/therapistRoute.js - User records
server/models/userSchema.js - Wellness records
server/models/detailsSchema.js - Book records
server/models/bookSchema.js - Meditation records
server/models/meditateSchema.js - Therapist records
server/models/therapistSchema.js
Other components
- User
- YouTube services
Connections 28
- User → React router: uses
- React router → Sign up: routes
- React router → Log in: routes
- React router → Dashboard: routes
- React router → Personal diary: routes
- React router → Profile and avatar: routes
- React router → Meditation player: routes
- React router → Book library: routes
- React router → Therapist directory: routes
- React router → Therapist registration: routes
- Dashboard → Mood graph: renders
- Mood graph → Express API: fetches feelings
- Personal diary → Express API: reads and saves
- Profile and avatar → Express API: manages profile
- Book library → Express API: fetches books
- Meditation player → Express API: fetches catalog; saves last played
- Meditation player → YouTube services: loads videos and durations
- Therapist registration → Express API: submits application
- Express API → User routes: mounts
- Express API → Wellness routes: mounts
- Express API → Book routes: mounts
- Express API → Meditation routes: mounts
- Express API → Therapist routes: mounts
- User routes → User records: reads and writes
- Wellness routes → Wellness records: reads and writes
- Book routes → Book records: reads and writes
- Meditation routes → Meditation records: reads and writes
- Therapist routes → Therapist records: reads and writes