How amirasenni21/medimind_ai works
MediMind AI is a medical-chat web application: users sign in, create chats from the dashboard, and view chat history. The backend creates and serves chat records and per-user chat lists. The prompt component currently does not send messages to Gemini or save replies—the relevant code is commented out—so that advertised conversation capability is not an active workflow in the sampled source. The graph also includes the documented contact form and image-auth endpoint; unsampled implementation details are not inferred.
Main entry points: index.js Express API · DashboardLayout.jsx Dashboard layout · main.jsx Route application · ChatPage.jsx Chat history view
Components 18
Web experience
- Route application
client/src/main.jsx - Home page
client/src/routes/homepage/Homepage.jsx - Contact form
client/src/routes/contactUsPage/contactUsPage.jsx - Sign-in and sign-up
client/src/routes/signInPage/signInPage.jsx - Dashboard layout
client/src/layouts/dashboardLayout/DashboardLayout.jsx - New-chat dashboard
client/src/routes/dashboardPage/DashboardPage.jsx
Chat interface
- Recent chat list
client/src/components/chatList/ChatList.jsx - Chat history view
client/src/routes/chatPage/ChatPage.jsx - Message prompt
client/src/components/newPrompt/NewPrompt.jsx
API and persistence
- Express API
backend/index.js - Chat history model
backend/models/chat.js - User chat index
backend/models/userChats.js
External services
- Gemini model client
client/src/lib/gemini.js - MongoDB
- Clerk authentication
- ImageKit
- EmailJS
Other components
- Visitor
Connections 19
- Visitor → Route application: opens
client/src/main.jsx - Route application → Home page: routes to
client/src/main.jsx - Route application → Sign-in and sign-up: routes to
client/src/main.jsx - Route application → Dashboard layout: routes to
client/src/main.jsx - Dashboard layout → New-chat dashboard: renders
client/src/main.jsx - Dashboard layout → Chat history view: renders
client/src/main.jsx - Dashboard layout → Recent chat list: renders
client/src/layouts/dashboardLayout/DashboardLayout.jsx - Home page → Contact form: renders
client/src/routes/homepage/Homepage.jsx - Contact form → EmailJS: sends form
client/src/routes/contactUsPage/contactUsPage.jsx - New-chat dashboard → Express API: creates chat
client/src/routes/dashboardPage/DashboardPage.jsx - Recent chat list → Express API: fetches and deletes
client/src/components/chatList/ChatList.jsx - Chat history view → Express API: fetches history
client/src/routes/chatPage/ChatPage.jsx - Chat history view → Message prompt: renders
client/src/routes/chatPage/ChatPage.jsx - Express API → Chat history model: reads and writes
backend/index.js - Express API → User chat index: reads and writes
backend/index.js - Express API → MongoDB: connects
backend/index.js - Express API → Clerk authentication: authenticates requests
backend/index.js - Dashboard layout → Clerk authentication: checks session
client/src/layouts/dashboardLayout/DashboardLayout.jsx - Express API → ImageKit: requests upload auth
backend/index.js