How ankit-iiitkota/ayurvision works
Ayurvision is a web platform for account access, image-based health analysis, and Ayurvedic patient reports, alongside appointment booking and informational pages. The main patient workflow runs from login through image upload to a protected analysis request and report display. The backend also exposes role-protected patient and doctor dashboard endpoints. The README describes specialist report review and AI insights, but the sampled code does not establish a specialist report-list interface or an external AI service connection, so those links are not inferred.
Main entry points: Home.js Home page · App.js Web routes · imageUpload.js Upload and analysis routes · authRoutes.js Authentication routes
Components 26
Patient web app
- Web routes
frontend/src/App.js - Login and signup UI
frontend/src/Components/Login.js - Image capture and upload
frontend/src/Components/Uploading.js - Patient analysis report
frontend/src/Components/PatientAnalysis.js
Appointments and information
- Home page
frontend/src/Pages/Home.js - Landing hero
frontend/src/Components/Hero.js - Health information
frontend/src/Components/Info.js - About content
frontend/src/Components/About.js - Appointment booking
frontend/src/Components/BookAppointment.js - Appointment form
frontend/src/Components/AppointmentForm.js - Customer reviews
frontend/src/Components/Reviews.js - Footer and newsletter
frontend/src/Components/Footer.js - Legal documents
frontend/src/Components/LegalDocs.js
Backend API
- API server and routing
backend/index.js - Authentication routes
backend/routes/authRoutes.js - Upload and analysis routes
backend/routes/imageUpload.js - Authentication controller
backend/controllers/authController.js - Image upload controller
backend/controllers/imageController.js - Analysis controller
backend/controllers/analysisCon.js - JWT and role checks
backend/middlewares/authMiddleware.js
Identity and patient data
- Patient records
backend/models/patientModel.js - OTP records
backend/models/otpModel.js - MongoDB connection
backend/utils/database.js - Cloudinary image storage
Other components
- Patient
- Ayurvedic specialist
Connections 32
- Patient → Web routes: uses
README.md - Web routes → Home page: routes to
frontend/src/App.js - Web routes → Login and signup UI: routes to
frontend/src/App.js - Web routes → Image capture and upload: routes to
frontend/src/App.js - Web routes → Patient analysis report: routes to
frontend/src/App.js - Web routes → Legal documents: routes to
frontend/src/App.js - Home page → Landing hero: renders
frontend/src/Pages/Home.js - Home page → Health information: renders
frontend/src/Pages/Home.js - Home page → About content: renders
frontend/src/Pages/Home.js - Home page → Appointment booking: renders
frontend/src/Pages/Home.js - Home page → Customer reviews: renders
frontend/src/Pages/Home.js - Home page → Footer and newsletter: renders
frontend/src/Pages/Home.js - Appointment booking → Appointment form: offers booking
README.md - Patient → Login and signup UI: authenticates
README.md - Patient → Image capture and upload: submits image
README.md - Image capture and upload → Patient analysis report: continues to report
README.md - Patient analysis report → Upload and analysis routes: requests analysis
frontend/src/Components/PatientAnalysis.js - API server and routing → Authentication routes: mounts routes
backend/index.js - API server and routing → Upload and analysis routes: mounts routes
backend/index.js - Authentication routes → Authentication controller: dispatches auth
backend/routes/authRoutes.js - Authentication routes → JWT and role checks: protects dashboards
backend/routes/authRoutes.js - Upload and analysis routes → JWT and role checks: guards endpoints
backend/routes/imageUpload.js - Upload and analysis routes → Image upload controller: dispatches upload
backend/routes/imageUpload.js - Upload and analysis routes → Analysis controller: dispatches analysis
backend/routes/imageUpload.js - Authentication controller → Patient records: reads and writes
backend/controllers/authController.js - Authentication controller → OTP records: stores OTPs
backend/controllers/authController.js - Image upload controller → Patient records: updates image
backend/controllers/imageController.js - Image upload controller → Cloudinary image storage: uploads image
backend/controllers/imageController.js - Analysis controller → Patient records: reads patient
backend/controllers/analysisCon.js - API server and routing → MongoDB connection: connects database
backend/index.js - Ayurvedic specialist → Authentication routes: accesses dashboard
backend/routes/authRoutes.js - Ayurvedic specialist → Analysis controller: views patient insights
README.md